Posts mit dem Label svn revision link url werden angezeigt. Alle Posts anzeigen
Posts mit dem Label svn revision link url werden angezeigt. Alle Posts anzeigen

Samstag, 13. März 2010

Linking to a specific subversion revision in urls

Yesterday I did some documentation work at my company and had to archive a documentation link in our Lotus Notes databases. But after reflecting the link a little I thought it would be better to link not to the subversion HEAD because the document I was linking to can be moved or modified. It would be more better to link to the actual revision. I was not able to find something helpful in the svn docs.

But I found this helpful link. Searching the "/!svn/bc/" in google gave the following also interesting link to stackoverflow.

Per posted: "Now, to easily browse an earlier revision of the tree, simply edit the URL and insert "/!svn/bc/<revision number>/" after the svn root"

For the Fashion girls ;-) source tree revision 4 this looks like this:

http://fashion-girls.googlecode.com/svn/!svn/bc/4/trunk/src/FashionGirls_GAE/

This is the regular link to the HEAD of the trunk:

http://fashion-girls.googlecode.com/svn/trunk/src/FashionGirls_GAE/

The difficult part for me was to find the svn root path of our companies svn server url. For this I had to play around a little bit. Otherwise maybe wireshark is a option ;-)
I hope this helps someone other than me.