In Apache Subversion, the basic workcycle follows the ‘checkout-edit-update-commit’ format.
In this week’s tip, we get you off to a flying start with SmartSVN, the popular graphical client for Subversion, by covering the entire workcycle in three simple steps.
Step One: Perform a Checkout
1) Open the ‘Project’ menu and select ‘Check Out…’
2) Enter the URL of the repository you wish to checkout. Select ‘Next.’
3) Select the directory to checkout. If you want to checkout a revision other than Head, select the ‘Show Revision’ button and specify a revision number.
4) When you are happy with the information you’ve entered, select ‘Next.’
5) In the subsequent dialog, enter the local directory where you’ll store your working copy. Select the checkout depth, and click ‘Next.’
6) Choose whether to checkout a working copy or export files only. Select ‘Finish.’
7) SmartSVN will perform the checkout. You can now work on the files and folders in your newly-created working copy using SmartSVN.
Step Two: Perform an Update
Before you commit your changes back to the repository, it’s good practice to perform an ‘SVN Update.’ This is made easy with SmartSVN, simply press the ‘update’ button in the toolbar to get started.
In the subsequent dialog, specify which revision you wish to update to (default is the Head) and confirm the update.
Step Three: Perform Your Commit
Perform a commit by selecting the ‘Commit’ button from the toolbar.
Enter an appropriate log message and confirm the commit.