Sunday, July 20, 2008

Subversion: In-url revision browsing

I use Subversion for revision control, and while most Svn tools (like Subclipse, TortoiseSVN, and even the svn command-line client) offer decent log- and diff-tools, sometimes I find it easier to quickly pull up an Svn resource in a browser to look at it.

Let's use the Google Code 'svn merge fairy' project for our guinea pig. Their current trunk is at http://svn-merge-fairy.googlecode.com/svn/trunk/ (revision 8 at the time of writing).

Now, to easily browse an earlier revision of the tree, simply edit the URL and insert "/!svn/bc/<revision number>/" after the Svn root: http://svn-merge-fairy.googlecode.com/svn/!svn/bc/1/trunk/

Here you can see that the first version (revision 1) of the project contained no files.

(I'll come back to branch-management using svn merge fairy in a future post.)

3 comments:

nano said...

Thanks, exactly what I needed :)

chandan said...

Thanks, man

Ondrej Medek said...

Thanks, that's an useful information.

Is there any way how to display diff between two versions? (I mean through this basic SVN HTTP intrface, I do not mean any other tools like WebSVN). Thanks