Online Documentation For Altium Products - Tutorial - Using Version Control in Altium Designer - 2013-11-06
Online Documentation For Altium Products - Tutorial - Using Version Control in Altium Designer - 2013-11-06
Online Documentation For Altium Products - Tutorial - Using Version Control in Altium Designer - 2013-11-06
Modied by on 6-Nov-2013
Altium Designer supports Subversion (SVN) and Concurrent Versions System (CVS). Because it has
direct support for SVN it gives access to many of the standard SVN commands, including the ability to
create a repository, commit/update les, as well as being able to access le revisions from within
Altium Designer. This works well with the schematic and PCB comparison features, making it easy to
quickly compare and identify dierences between two revisions of a schematic or two revisions of a
PCB.
If you are new to version control systems and are wondering where to start, read the article Version
Control and Altium Designer.
Version Control - General preferences - choosing SVN as the Version Control provider
Note that it is necessary to have Subversion 1.5.0 or later installed in order for the SVN
commands to work correctly from Altium Designer.
All VCS related tasks can be performed through the Storage Manager panel. Note that in this gure the lower region of the panel is
congured to be in Timeline view.
The Project panel also shows the VCS status, right-click for more options.
SCCI
[blank] Version control disabled le has not been added to the VCS.
[blank] Not in version control - le has not been added to the VCS.
No modication - The le is checked in to the repository, and your local copy is up to date.
Depending on the provider, your local copy may be marked read-only so that it cannot be
modied until you Check Out.
Out of date- The le is checked in to the repository, but your local copy is out of date. Use
Get Latest Version to update your local copy.
Checked out exclusively by me You have checked out the le exclusively, but there are no
changes to check in. Use Undo Check Out when you are nished with the le and want to allow
other people to check it out.
Modied exclusively by me You have checked out the le exclusively and modied it. Use
Check In to check your changes into the repository or Undo Check Out to discard them.
Locked exclusively Someone else has checked out the le exclusively. You cannot check
out the le until he or she selects Undo Check Out. Depending on the provider, your local copy
may be marked read-only so that it cannot be modied.
Locked exclusively by me - You have somehow managed to check out the le exclusively
somewhere else (perhaps in another directory). Refer to the documentation for your Source
Code Control plug-in on how to remove the lock.
CVS and Subversion
[blank] Version control disabled le has not been added to the VCS.
[blank] Not in version control - le has not been added to the VCS.
No modication The le is checked in to the repository, and your local copy is up to date.
Depending on the provider, your local copy may be marked read-only so that it cannot be
modied until you Check Out.
Out of date The le is checked in to the repository, but your local copy is out of date. Use
Get Latest Version to update your local copy.
Modied the checked out le is locally modied by you. Save the le and check in / commit
the le to the repository.
Conict - the le has been committed by some one else before you had a chance to commit
this le.
Missing the le is present in the repository but not in your working folder. Use Restore
menu item from the menu by right clicking to obtain a copy from the repository in your working
folder.
You can right click and select Refresh Status to refresh the current VCS status of each le on the
Projects panel. A document that is not in the version control database will not display an icon.
Using Subversion
Before using version control, the project les must be recognized by both the VCS and Altium
Designer as being under version control. This process can be dierent for the dierent VCS methods,
so we will demonstrate how to do this with Subversion.
Creating a Repository
Subversion saves its version control information in a central repository. The repository stores
information in a hierarchy of les and directories, referred to as a le tree. If you do not already have
a repository you will need to create one.
To create a repository:
1. Display the Storage Manager panel
2. Right-click and select Create Repository
3. Specify a directory to contain the Subversion repository in the dialog shown below. Note the
Repository Type option, unless you are familiar with Berkeley databases it is recommended to
use the Native Filesystem option.
All VCS actions can be performed through the Storage Manager panel, via the right-click menu.
3. You will see the directory structure of the project/le that you have selected in the Folders
section of the Storage Manager panel. Select a directory. Note that Altium Designer will not
automatically monitor sub-directories, you will need to specify each directory.
4. Select Link Folder to Repository folder from the right-click menu on the Storage Manager panel.
5. This will open the SVN Link Setup dialog which will allow you to link the directory to the
Subversion repository.
6. Conrm the Local Directory is the directory you have selected in Step 3 and that the Path To
Repository species which Subversion repository you want to use. Then click Ok.
This directory is now being monitored by Subversion. This is indicated by the chain icon next to the
directory name in the Storage Manager Panel, as shown in the gure below.
Note the chain icon, this indicates that this directory is under version control.
After you have added the les to the repository, the status of the les are changed to No
Modication, as indicated in the gure below.
The VCS Revisions section of the Storage Manager panel has a blue arrow that shows the revision
of the le that you currently checked out.
With this version of Altium Designer, les cannot be locked exclusively when being added to the
repository with Subversion.
The gure below shows the check-out status for various project les with SourceSafe as the VCS.
Since SourceSafe uses the lock-modify-unlock model then the le can be checked out exclusively, or
For the le that is checked out exclusively, another designer will not be able to check-out this le. The
VCS will have a mechanism to allow them to get a copy of the le, but the only person that can checkin an updated version of the le is the designer that checked it out exclusively. With this version of
Altium Designer, les cannot be locked exclusively when being added to the repository with
Subversion.
Use the Dierence capabilities to quickly identify changes in your schematic and PCB design les
If you are using CVS or SVN as your version control system you can perform a compare directly in the
VCS Revisions section of the Storage Manager panel. To do this:
1. Ctrl+click to select each of the 2 revisions,
2. right-click and select Compare from the context menu,
3. the 2 les will be opened side-by-side, compared, and all dierences will be listed in the
Dierences panel,
4. double-click on an entry in the Dierences panel to examine it on the actual schematic or PCB.
Since the SCC software interface does not support passing a list of revisions to Altium Designer, for
any other version control system you will need to:
1.
2.
3.
4.
5.
6.
7.
Click OK in the History Options dialog to select the revisions of interest from a list
The information shown will depend on the version control software you are using. Consult your VCS
software documentation for more information on these dialogs.
See Also
Version Control and Altium Designer
Version Control Terminology
References
SVN community website http://subversion.tigris.org/
SVN online manual http://svnbook.red-bean.com/
CVS community website https://www.cvshome.org/
CVS installation tips http://www.cvsnt.org/wiki/InstallationTips
CVS manual (known as the Cederqvist, after the author) https://www.cvshome.org/docs/manual/
Using and administering CVS http://cvsbook.red-bean.com/cvsbook.html
Alternate CVS download site http://www.cvsnt.com
Source URL:
http://techdocs.altium.com/display/ADOH/Tutorial+-+Using+Version+Control+in+Altium+Designer#comment-0