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

Re: PROPOSAL: URL-syntax (Was: Re: Official revision syntax for Subversion URLs)

From: SLOGEN <jensen_at_slog.dk>
Date: 2003-08-06 11:52:09 CEST

After some thought, I seem to have come to a realization about what is
the most proper solution.

We haven't realized that there actually is a difference between:

   http://host/path/to/repos;rev=5/x

Which should retrieve x from the repository in revision 5, and

   http://host/path/to/repos/x;rev=5

Which should retrive the thing that x means in HEAD, as that looked in
revision 5.

This means, actually that we should simply allow ;rev=[STUFF] on any path:

   http://host/path/to/repos/x/y;rev=5/z;rev=4

Which retrieves the stuff that's named z, as it was in rev 4 of what is
named x/y on HEAD, as it was in rev 5's.

Multiple ;rev='s would probably never be used, but they model the exact
possibilities that SVN offer, and in a _very_ sweet way!

Now, the problem about the user's selection of where the ;rev should be
dissapears, since he can put it where he _means_, if he writes:

   http://host/path/to/repos/~user;rev=6

He would get the ~user part of the repository as it looked in revision 6.

A way to get wayback-mode in the entire repository could be to use queries:

   http://host/path/to/repos/~user?wayback-rev=8

that would redirect:

   301 Permanently Moved
   Location: http://host/path/to/repos;rev=8/~user

-- 
Helge
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Aug 6 11:53:02 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.