SVN for Non-TechiesSubmitted by matthew on Mon, 2007-11-19 22:23 |
A couple of weeks back I wrote about using CVS for versioning control. The other widely used technology is called SVN (Subversion). Again, SVN can be managed by command line and in fact you have more control using the command line. If you need to use Subversion occasionally, you can use SmartSVN. The process of using SmartSVN is very similar to using SmartCVS. SVN is a common tool used by Drupal houses to allow many developers and themers access to the same files in development of a site.
There are a few concepts that are important to understand. Checkout, Add, Commit, and Update.
You should only need to check a project out once--after that anything that you do locally should synchronize (when you tell SVN that is what you wish to do). That is to say anything that you do to the files is synchronized when you commit them back to the repository.
Using Add tells the repository you intend to place a file into the repository.
Commit tells the repository you wish to finish the synchronization from your local environment to the repository.
Update synchronizes your local environment to match the repository.
- Download SmartSVN and fire it up
- A window will open labled "Check Out Project"
- Click "Manage"
- Click "Add"
- The maintainer of the repository should have given you Access Method, a server name, and a repository path. Enter those into this page.
- Click "Next"
- Enter your login name and password
- Click "Next"
- This should then bring you to a page which shows the repository
- Choose what you want to check out
- Click "Next"
- Choose a target directory. You can browse for it.
- Click "Next"
- Rename the Project if you want, and click "Next"
- Click "Finish" and the check out will begin.
After that to make changes to the repository, you drag new or edit your existing files in your "sandbox". If you have put a new file into your "sandbox", then you do the following:
- Fire up SmartSVN and choose "Open existing project"
- Choose the project you want to work within and click "OK"
- Right click on the files you added and choose "Add" for each
- Go to the "Modify Menu" and choose "Commit"
- Go to the "Modify Menu" and choose "Update"
This will add your files to the repository and pull down any changes others have made to the repository.
If you want to just pull down changes, follow steps 1, 2, and 5.








Another SVN Client
Another great client for svn is TortoiseSVN although this is a windows only client. It completely integrates the the right click windows function and is on of best clients out there.
Thanks Shawn!
Nice! I appreciate the tip. I'm a Mac user, which takes me out of that loop, but that can help others.