DireXions
+
2011 – Your Tool Box just got Bigger
PxPlus Version Control System
Using TortoiseSVN
Presented by:
DireXions
+
2011 – Your Tool Box just got Bigger
Presentation Outline
•
Overview of Source Control
•
Basic installation and setup
•
Checking in an application first time
•
Checking out an application first time
•
Making changes to programs/panels
•
Committing changes
•
Additions and Deletions
•
Applying updates from other users
DireXions
+
2011 – Your Tool Box just got Bigger
Overview
•
Program code/panels/data files/resource files
maintained in a central repository
•
Each programmer maintains their own copy – their ‘sandbox’
•
The programmer make changes in their sandbox
•
Once they are happy with changes they commit them
•
System merges changes made by other users
•
Conflicts are reported to the programmer who must correct
•
Leaves actual conflict resolution up to the programmer
•
All changes are tracked by when, by whom, and why
DireXions
+
2011 – Your Tool Box just got Bigger
Initial Setup
•
TortoiseSVN is a Subversion Windows client
•
Install TortoiseSVN on your Windows client
•
Available on-line at
http://tortoisesvn.net
DireXions
+
2011 – Your Tool Box just got Bigger
Initial Setup
•
TortoiseSVN
interfaces
through
Windows
Explorer
right-click
menu
DireXions
+
2011 – Your Tool Box just got Bigger
Initial Setup
•
Next you need to create a repository
•
This is a database where the versions will reside
•
It keeps all the source and updates safe
•
Once created make sure you back it up
DireXions
+
2011 – Your Tool Box just got Bigger
Initial Setup
•
Create the repository
•
Unix/Linux uses the
svnadmin
command to create
•
You can use SSH to interact with the repository
•
Alternatively use
svnserve
as a background daemon
•
TortoiseSVN allows you to create one on Windows
DireXions
+
2011 – Your Tool Box just got Bigger
•
Overview of Source Control
•
Initial check in of application
Application Directory Tokenized Programs Screen libraries Data files Other files
Initial check-in
DireXions
+
2011 – Your Tool Box just got Bigger
Initial check-in
•
Overview of Source Control
•
Initial check in of application
•
Extract to text
Application Directory Tokenized Programs Screen libraries Data files Other files Source Directory Sandbox Text Programs Screen directories with text panels Data filesOther files
DireXions
+
2011 – Your Tool Box just got Bigger
Initial check-in
•
Overview of Source Control
•
Initial check in of application
•
Extract to text
Application Directory Tokenized Programs Screen libraries Data files Other files Source Directory sandbox Text Programs Screen directories with text panels Data filesOther files
DireXions
+
2011 – Your Tool Box just got Bigger
Initial check-in
•
Overview of Source Control
•
Initial check in of application
•
Extract to text
•
Import to Repository
Application Directory Tokenized Programs Screen libraries Data files Other files Source Directory sandbox Text Programs Screen directories with text panels Data filesOther files
DireXions
+
2011 – Your Tool Box just got Bigger
Initial check-in
•
Overview of Source Control
•
Initial check in of application
•
Extract to text
Application Directory Tokenized Programs Screen libraries Data files Other files Source Directory Sandbox Text Programs Screen directories with text panels Data filesOther files
DireXions
+
2011 – Your Tool Box just got Bigger
Initial check-in
•
Overview of Source Control
•
Initial check in of application
•
Extract to text
•
Import to Repository
Application Directory Tokenized Programs Screen libraries Data files Other files Source Directory Sandbox Text Programs Screen directories with text panels Data files Other files SVN control files Repository Database with programs,panels, and data file changes
along with version information
DireXions
+
2011 – Your Tool Box just got Bigger
Initial check-in
•
Overview of Source Control
•
Initial check in of application
•
Extract to text
•
Import to Repository
Application Directory Tokenized Programs Screen libraries Data files Other files Source Directory sandbox Text Programs Screen directories with text panels Data files Other files SVN control files Repository Database with programs,panels, and data file changes
along with version information
DireXions
+
2011 – Your Tool Box just got Bigger
Initial check-in
•
Overview of Source Control
•
Initial check in of application
•
Extract to text
•
Import to Repository
Application Directory Tokenized Programs Screen libraries Data files Other files Source Directory Sandbox Text Programs Screen directories with text panels Data files Other files SVN control files Repository Database with programs,panels, and data file changes
along with version information
DireXions
+
2011 – Your Tool Box just got Bigger
Developer checkout
•
Overview of Source Control
•
For each developer to get their copy
Repository Database with programs,
panels, and data file changes
along with version information
DireXions
+
2011 – Your Tool Box just got Bigger
Developer checkout
•
Overview of Source Control
•
For each developer to get their copy
•
Checkout from the repository
Source Directory Sandbox
Text Programs Screen directories with text panels Data files Other files SVN control files Repository Database with programs,
panels, and data file changes
along with version information
DireXions
+
2011 – Your Tool Box just got Bigger
Repository Database with programs,
panels, and data file changes
along with version information
Developer checkout
•
Overview of Source Control
•
For each developer to get their copy
•
Checkout from the repository
Source Directory sandbox
Text Programs Screen directories with text panels Data files
Other files
DireXions
+
2011 – Your Tool Box just got Bigger
Developer checkout
•
Overview of Source Control
•
For each developer to get their copy
•
Checkout from the repository
Source Directory sandbox
Text Programs Screen directories with text panels Data files Other files SVN control files Repository Database with programs,
panels, and data file changes
along with version information
DireXions
+
2011 – Your Tool Box just got Bigger
Developer checkout
•
Overview of Source Control
•
For each developer to get their copy
•
Checkout from the repository
Source Directory sandbox
Text Programs Screen directories with text panels Data files Other files SVN control files Repository Database with programs,
panels, and data file changes
along with version information
DireXions
+
2011 – Your Tool Box just got Bigger
Developer checkout
•
Overview of Source Control
•
For each developer to get their copy
•
Checkout from the repository
Source Directory Sandbox
Text Programs Screen directories with text panels Data files Other files SVN control files Repository Database with programs,
panels, and data file changes
along with version information
DireXions
+
2011 – Your Tool Box just got Bigger
Developer checkout
•
Overview of Source Control
•
For each developer to get their copy
•
Checkout from the repository
•
Update application directory
Application Directory Tokenized Programs Screen libraries Data files Other files Source Directory Sandbox Text Programs Screen directories with text panels Data files Other files SVN control files Repository Database with programs,
panels, and data file changes
along with version information
DireXions
+
2011 – Your Tool Box just got Bigger
Developer checkout
•
Overview of Source Control
•
For each developer to get their copy
•
Checkout from the repository
•
Update application directory
Application Directory Tokenized Programs Screen libraries Data files Other files Source Directory sandbox Text Programs Screen directories with text panels Data files Other files SVN control files Repository Database with programs,
panels, and data file changes
along with version information
DireXions
+
2011 – Your Tool Box just got Bigger
Developer checkout
•
Overview of Source Control
•
For each developer to get their copy
•
Checkout from the repository
•
Update application directory
Application Directory Tokenized Programs Screen libraries Data files Other files Source Directory sandbox Text Programs Screen directories with text panels Data files Other files SVN control files Repository Database with programs,
panels, and data file changes
along with version information
DireXions
+
2011 – Your Tool Box just got Bigger
Developer checkout
•
Overview of Source Control
•
For each developer to get their copy
•
Checkout from the repository
•
Update application directory
Application Directory Tokenized Programs Screen libraries Data files Other files Source Directory Sandbox Text Programs Screen directories with text panels Data files Other files SVN control files Repository Database with programs,
panels, and data file changes
along with version information
DireXions
+
2011 – Your Tool Box just got Bigger
Case Considerations
•
Incompatible case settings can make a diff in your
repository
•
Parameters and IT settings affect how programs are saved
•
‘MC’, ‘LC’, ‘LD’, ‘NL’
, etc.
•
‘V+’
parameter controls how the text programs are saved
into the source directory
•
Value is a mask consisting of:
0 - Source will use lower case variables and directives and suppress LET (default) 1 - Source will use upper case variables and directives and suppress LET
2 - Source will use the 'LD', 'LC' and 'NL' parameters in effect
+4 - Adding 4 to the value of 0, 1 or 2 will force the format of a SAVE to a serial file to match that of a standard SAVE.