Software Tools - Subversion
Introduction
Subversion is easily the best version control software I've ever used (read as "better than CVS and SourceSafe"). This tutorial won't endeavor to show you how to install and configure a subversion server. Rather, this page will describe the subversion commands that I've found most useful.
The Log Command
The log command is really useful for finding out all of the revisions that have been made to a file or directory.
$ svn log SomeDirectory/ ------------------------------------------------------------------------ r88888 | username | 2009-01-09 20:44:14 -0600 (Fri, 09 Jan 2009) | 1 line Link administrator's console to smoke test pages for easy review. ------------------------------------------------------------------------ r88574 | username | 2009-01-05 16:19:02 -0600 (Mon, 05 Jan 2009) | 1 line bump version numbers for branch
As you can see, the log command tells you which revisions have been applied to a file or directory. Using that command can help you zero in on a revision of interest. Once you discover which revision is of particular interest, you can use the log command again to find out all of the files that were touched by that revision.
$ svn log -v -r 88888 ------------------------------------------------------------------------ r88888 | username | 2009-01-09 20:44:14 -0600 (Fri, 09 Jan 2009) | 1 line Changed paths: A /SomeDirectory/src/main/java/com/some/package/smoketest A /SomeDirectory/src/main/java/com/some/package/smoketest/EntryPointSmokeTestAction.java A /SomeDirectory/src/main/java/com/some/package/smoketest/SmokeTest.java A /SomeDirectory/src/main/java/com/some/package/smoketest/SmokeTestPage.java M /SomeDirectory/src/main/resources/resources/NavigationBar.properties A /SomeDirectory/src/main/webapp/SmokeTest.jsp M /SomeDirectory/src/main/webapp/WEB-INF/struts-config.xml Link administrator's console to smoke test pages for easy review. ------------------------------------------------------------------------