-
Notifications
You must be signed in to change notification settings - Fork 12
Version control
Joe Wicentowski edited this page Feb 25, 2014
·
6 revisions
All of the data on history.state.gov is stored in a version control system. The version control system ensures that every important change we make is backed up and secure, so we don't lose any work and have a complete history of our work. This article contains instructions for using our version control system on a day to day basis. It assumes you have already set up your system.
Make sure you are always working with the latest version of every file in your system - both in your SVN Working Copy and in your eXist-db database. The best way to do this is to follow these directions:
- In Syncro SVN Client, select the
Working Copy
tab. - Right-click on the top-level folder and select
Update
. - Select the
Console
tab to watch the progress as the SVN client downloads all of the latest files. - When you see
Updated to revision ____
(e.g., "1000") andRefresh done
, then the SVN client has completed downloading all of the files. - Your SVN Working Copy is now up to date.
- Warning: This step will erase the contents of your eXist-db database. So before you proceed, make sure you have saved any files you've edited from the database into your SVN Working Copy.
- Stop eXist-db. You'll know eXist-db is running if the eXist-db icon in your task bar (Windows) or menu bar (Mac) and the
Start server
option is grayed out. To stop the eXist-db server, select the eXist-db task/menu bar icon >Stop Server
. You'll know eXist-db is not running if there is no eXist icon in the task/menu bar, or if you click on the icon and the menu option forStop Server
is grayed out. - In oXygen, select the
Tools
menu >External Tools
>wipe-exist-data
. A new tab will open at the bottom of the oXygen window, showing the results of thewipe-exist-data
script. When you seeBUILD SUCCESSFUL
, close the tab. - Start eXist-db. To start eXist-db if you already have the eXist-db icon in your task/menu bar, select
Start Server
. If you do not have the eXist-db icon in your task/menu bar, double-click the shortcut tostart.jar
that you created when you set up your system.
- When you have a new or edited file that you are ready to commit to the repository, open the Syncro SVN Client window and select the
Working copy
tab. The SVN Client should automatically scan for new or edited files. (You can force the SVN Client to scan for new or edited files by right-clicking on the top-level folder and selectingRefresh
. - Right-click on the top-level folder and select
Commit
. ACommit
dialog window will appear, showing a list of all changed files. Carefully review the list of changed files, ensuring that the only files checked are the ones you want to commit; uncheck any files you do not want to commit. In theCommit message
field enter a description of the changes you are making. - Select the
Console
tab to watch the progress as the SVN client commits your files to the repository. - When you see
Committed revision ____
(e.g., "1001") andRefresh done
, then the SVN client has completed committing your files to the repository.