How do I browse an old revision of a Subversion repository through the web view?

Svn

Svn Problem Overview


I know how to browse my project's Subversion repository through its web front-end, but it seems that I can only browse the latest revision of the trunk. Is there a way to browse an older revision of the trunk through the web UI?

I know how to do this from the command-line, but I need to know how to do this using URLs, because I'm embedding these URLs into a document. I also know I could create an svn-style tag of the trunk, but I would prefer not to do that.

Svn Solutions


Solution 1 - Svn

Append something like this to your repository URL:

!svn/bc/<revision_number>/

E.g.

http://www.example.com/svnrepository/!svn/bc/3/

Alternative

From Bert Huijben's comment:

> If your repository is hosted using Subversion 1.6.0 or later, you can > use example.com/svnrepository/?p=3 for the same result... This method > /is/ documented. (?r= revision of the file, ?p= operational revision > of the URL). See the subversion 1.6 release notes

Solution 2 - Svn

Append this to your repository's URL:

?p=24

Examples:

http://www.example.com/svnrepository/?p=65
http://www.example.com/svnrepository/subdir/file.html?p=42

Documentation: http://subversion.apache.org/docs/release-notes/1.6.html#historical-uris

Solution 3 - Svn

It depends on the svn webclient you're using. In the case of trac (and maybe some others), just add the the parameter rev= to the querystring.

i.e. http://trac.example.com/log/trunk/client/filename?rev=123

Solution 4 - Svn

If you use VisualSVN Server 3.2 or newer then you can use its HTML5-based web-based history browser for this task. For example, here is a repository tree as it existed in revision 1001 of serf network library repository.

See the description of the web interface.

Solution 5 - Svn

From the web, you can go to the repository SVN page and add / after it:

https://<host>/subversion/source/<revision>

for example:

https://app.assembla.com/spaces/myproject/subversion/source/1200

Solution 6 - Svn

The built-in web interface does not allow retrieving of old revisions (or any other info than what you've already seen). You can install third-party web-based repository browsing software to get around this limitation. I haven't used any myself, so I'm not going to offer recommendations, but I'm sure others will (a quick google search will help you find some too).

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRoss RogersView Question on Stackoverflow
Solution 1 - SvnSebView Answer on Stackoverflow
Solution 2 - SvnnetActionView Answer on Stackoverflow
Solution 3 - SvnKentareeView Answer on Stackoverflow
Solution 4 - SvnbahrepView Answer on Stackoverflow
Solution 5 - SvnMichael HaephratiView Answer on Stackoverflow
Solution 6 - SvnrmeadorView Answer on Stackoverflow