Browsing a Specific SVN Revision

Déja Augustine's picture

Being able to browse subversion repositories over the web is extremely handy if you want to take a peek at a file or two without checking out the entire repository. On the surface, though, this feature ignores one of the most important features of subversion, which is the ability to go back in time to work with previous revisions.

This handy little snippet, however, lets you browse any revision over the web. Simply insert “!svn/bc/<rev>/” after your repository root and before the file path.

For example, if the path to the current revision of your repository's trunk is:

http: //localhost/path/to/repo/ProjectX/trunk

You would use the following to browse the trunk of revision 1321:

http: //localhost/path/to/repo/ProjectX/!svn/bc/1321/trunk