Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

svn

People also ask

How do I find previous versions of Subversion?

On the file, simply right-click => Team => Switch to another branch/tag/revision. Besides the revision field, you click select, and you'll see all the versions of that file.

How do I find my svn revision history?

To find information about the history of a file or directory, use the svn log command. svn log will provide you with a record of who made changes to a file or directory, at what revision it changed, the time and date of that revision, and, if it was provided, the log message that accompanied the commit.

How do I checkout past revision in svn?

Click the revision button at top-right and change it to the revision you want. Then right-click your file in the browser and use 'Copy to working copy...' but change the filename it will check out, to avoid a clash.


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


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


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