Monday, March 7, 2011

Embeding revision number in SVN link

I've just needed to send an URL to specific revision of an item in Subversion that did not have a tag. After Googling a bit it turns out that you can add special command in the URL. Just add "!svn/bc/revision_number/" into URL after repository.

For instance URL to current version of Tomcat trunk is:

http://svn.apache.org/repos/asf/tomcat/trunk/

If you want to see how it looked in revision 1,000,000 then just use this link:

http://svn.apache.org/repos/asf/!svn/bc/1000000/tomcat/trunk/