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 URL's, because I'm embedding these URL's into a document. I also know I could create an svn-style tag of the trunk, but I would prefer not to do that.

5 Answers
5

Edit: just copying here what Bert Huijben said in a comment, in case someone misses it:

If your repository is hosted using Subversion 1.6.0 or lateryou 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

I am absolutely stunned this works... (I just checked and it does). I've been told many times it's not possible. Note that the string mentioned must be right after the repo root in the URL, then you can put subdirs of the repo after it.
–
rmeadorMar 16 '09 at 17:27

Be careful with that: this is not officially supported and can change anytime with a new release. Even though it has been the same since the very beginnings of svn...
–
StefanMar 16 '09 at 18:01

42

If your repository is hosted using Subversion 1.6.0 or lateryou 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
–
Bert HuijbenMar 27 '09 at 12:09

2

Just as an amendment to BertHuijbens post, to view a past revision of a specific folder, you would do example.com/svnrepository/path/to/specific/folder/?p=3. For some reason or other, I thought the ?p=3 would come first, and figured I'd post about her here
–
shmeepsNov 14 '11 at 19:41

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).

as SebaGR notes, it is possible to access older revisions if you manipulate the URL directly. There is no UI for doing this however. It's quite a surprise to me that this is possible at all, since I've been repeatedly told it isn't...
–
rmeadorMar 16 '09 at 17:28

3

In Subversion 1.6.0 the ?p= and ?r= arguments where added as public (and documented) feature.
–
Bert HuijbenMar 27 '09 at 12:10

1.5 did/does not allow revision browsing through the built-in WebDAV interface. From svnbook.red-bean.com/en/1.5/svn-book.pdf: >Can I View Older Revisions? >With an ordinary web browser? In one word: nope. At least, not with mod_dav_svn as your only tool.
–
Zachary YoungMar 3 '14 at 22:53