|
Accessing_Subversion_Repository
Instruction on using SmartSVN to Connect to the FDS-SMV SVN repository.
IntroductionGoogle Code uses Subversion (SVN) for version control. Subversion is widely considered as an improved versioning method over CVS. This Wiki page provides instructions on using a browser called SmartSVN or the command line to obtain files from the FDS-SMV SVN Repository. Using SVN via the Browser SmartSVNSmartSVN is available as freeware. A for-purchase version of SmartSVN is available that has additional capabilities, but for most users the free version will suffice. Note that other programs are available (list of some found here). Adding the Repository to SVNHere is a short video of the process outlined below. (Right-Click and Save the Quicktime .mov file)
Obtaining FilesThe First TimeOnce a project has been added to the repository it can then be checked out.
At this point, the entire FDS-SMV project will be copied from the repository to your computer. After the First Time
Using SVN at the Command Line, without using SmartSVN clientIf you have SVN command line client installed, you can check out the FDS/SVN repository using the command line version of SVN. You can download the command line client for your platform here: http://subversion.tigris.org/project_packages.html Open a terminal/shell session and change to the directory that you want the FDS-SMV project folder to be placed within. NOTE: the distinction between "https" and "http" below. Anonymous CheckoutIf you are not a member of the FDS-SMV development team, then type: svn co http://fds-smv.googlecode.com/svn/trunk/FDS/trunk FDS-SMV Developer CheckoutNOTE: Replace 'my_name' in the string below with your google account username. This is the same username that has been given Project Member status in Google Code. As a member of the FDS-SMV development team with commit privileges, type: svn co https://fds-smv.googlecode.com/svn/trunk/FDS/trunk FDS-SMV --username [dev. username] You will be prompted for your password, but this is NOT the password for your Google Account, this is a special Google Code password that you can find through a link under the "Source" tab of the Google Code fds-smv project site. It will be a random bunch of numbers and letters and nothing that you can specify. NOTE: the link will not be available unless you are a Project Member or Owner. Either way, a directory called FDS-SMV will appear in the directory where you executed the checkout command (the 'co' part of the string), with the contents of the FDS-SMV repository contained within. UpdatesTo update your local copy of the repository, go to the sub-directory that you want to update (FDS-SMV in the example above) and type: svn update NOTE: This could be used to update any of the sub-directories under FDS-SMV. If you change down to a subdirectory, like 'SOURCE_FDS5' and execute the svn update command, only that directory will be updated. Change or Commit LogTo obtain a log of transactions for that particular sub-directory, type: svn log -r N:M > text_file.txt Which will record all transactions from SVN revision N to M in the file text_file.txt By switching the order of the revision numbers you can sort the log in ascending or descending order by revision number. StatusTo see which local files are different from those in the Repository, type: svn status | grep -v '?' InfoTo find out repository details such as the revision number or who made the last change use the svn info command. For example, cd'ing into the Verification directory and typing svn info results in the following output: Path: . URL: https://fds-smv.googlecode.com/svn/trunk/FDS/trunk/Verification Repository Root: https://fds-smv.googlecode.com/svn Repository UUID: d1fd391b-682f-0410-ad1c-43d0e10d2734 Revision: 4274 Node Kind: directory Schedule: normal Last Changed Author: mcgratta Last Changed Rev: 4246 Last Changed Date: 2009-06-25 16:42:34 -0400 (Thu, 25 Jun 2009) Edit Existing Commit Log EntryTo edit an existing commit log entry (developers only): svn propset -r N --revprop svn:log "[new log message]" https://fds-smv.googlecode.com/svn/trunk/FDS/trunk/ --username [dev. username] This will replace the log entry for SVN revision N, with the text placed in quotes. Note, this command will prompt for your GoogleCode password, which is the password in your profile, and not your Google Account password. |