[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Viewing Old Revisions Using Only a Web Browser

From: Ben Reser <ben_at_reser.org>
Date: 2004-10-11 22:56:08 CEST

On Mon, Oct 11, 2004 at 04:45:56PM -0400, Garrett Rooney wrote:
> David James wrote:
> >Contrary to what the SVN book says, it's not only possible but easy to
> >view old versions of a Subversion repository using only a web browser.
> >Here are some examples:
> >
> >>From the official Subversion repository:
> >Revision 1100: http://svn.collab.net/repos/svn/!svn/bc/1100
> >Revision 100: http://svn.collab.net/repos/svn/!svn/bc/100
> >Revision 1: http://svn.collab.net/repos/svn/!svn/bc/1
> >
> >Chapter 6 Section 4 of the SVN book states that web browsers "only
> >know how to GET public URLs, which represent the latest versions of
> >files and directories." This isn't quite true, is it?
>
> That is an undocumented implementation detail and is liable to change at
> any time. Those URLs already changed once in the project's history, and
> there's no reason they can't change again (if done in a backwards
> compatable manner, at least within 1.0). It is the project's policy
> that if you want more from the web front end you should install a
> package like ViewCVS.

Actually it doesn't even have to be backwards compatable. The server
gives the client those URLs. The client never creates them on their
own.

Incidentally there is an undocumented Apache configuration option to
change the the "!svn" part of that URL. While we don't recommend people
change it. The above shouldn't be taught to humans because it's quite
possible it won't be valid for all repos.

-- 
Ben Reser <ben@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Oct 11 22:56:32 2004

This is an archived mail posted to the Subversion Dev mailing list.