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

Re: Official revision syntax for Subversion URLs

From: John Peacock <jpeacock_at_rowman.com>
Date: 2003-08-05 20:28:10 CEST

kfogel@collab.net wrote:

> The problem with all such proposals (i.e., one that put the revision
> between the repository and the path-within-the-repository) is that it
> is impossible to construct such a URL automatically.

FWIW, the lightbulb in my head finally came on (perhaps somewhat dimly).

>
> In other words, given a regular URL -- one that does not specify any
> revision -- one cannot textually transform it into a URL that includes
> the revision, because one does not know where to insert the revision.
>

This pretty much guarantees that the only scheme which will work is something
appended the the regular URL. Consequently, the only question is what character
to use as the revision delimiter. According to RFC-2396,

> 3.3. Path Component
>
> The path component contains data, specific to the authority (or the
> scheme if there is no authority component), identifying the resource
> within the scope of that scheme and authority.
>
> path = [ abs_path | opaque_part ]
>
> path_segments = segment *( "/" segment )
> segment = *pchar *( ";" param )
> param = *pchar
>
> pchar = unreserved | escaped |
> ":" | "@" | "&" | "=" | "+" | "$" | ","
>
> The path may consist of a sequence of path segments separated by a
> single slash "/" character. Within a path segment, the characters
> "/", ";", "=", and "?" are reserved. Each path segment may include a
> sequence of parameters, indicated by the semicolon ";" character.
> The parameters are not significant to the parsing of relative
> references.
>

This would seem to suggest that we could safely use ';' as the seperator, to
delimit the file path from the revision segment.

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 5 20:28:43 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.