Re: [viewvc-users] svn sticky revision in path rather than query
"C. Michael Pilato" <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <[email protected]> |
[email protected] wrote: > Hello, > > Is it possible to include the svn sticky revision in the path component of a > ViewVC URL instead of the query part? > > The use case is that my repository stores the HTML files of a website. I > would like to browse an old version of the website using a sticky revision. > Links within the HTML files don't include the "?pathrev=XXX" part, so they > point to the HEAD revision, not revision of the source link. > > Sticky revisions would be stickier if there were a means to put them in the > path part of the URL. Instead of > http://example.org/viewvc.cgi/some/file?pathrev=10000, it would be useful to > be able to write http://example.org/viewvc.cgi/*revision=10000*/some/file. > > However, the specification of ViewVC URLs > (http://viewvc.tigris.org/nonav/source/browse/*checkout*/viewvc/trunk/docs/u > rl-reference.html) doesn't seem to allow for this. > > Is there a simple solution to implement this requirement? (maybe through > Apache rewrite rules?) I haven't thought too much about this proposal, but at first glance it sounds good. Maybe the syntax would be better off as ".../*checkout=PATHREV*/...", where PATHREV is either a revision (for Subversion displays) or a tag (for CVS). But in general, I like the idea. Of course, it still would only work for repositories that don't require the "?root=ROOTNAME" CGI parameter (those that are the only repository under a given ViewVC instance, or with have root_as_url_component=1). Wanna file this as a feature request in our tracker? -- C. Michael Pilato <[email protected]> CollabNet <> www.collab.net <> Distributed Development On Demand ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2239304 To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkoK5i4ACgkQokEGqRcG/W7lsQCghhmwdcmXREiioq0yqH/tBxtX 5jQAniFcTuLaWHDVnmnx+ChAxj6gDVvX =U9+H -----END PGP SIGNATURE-----