[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: Jan Braun <janbraun_at_gmx.de>
Date: 2003-08-05 02:52:48 CEST

Hi,

cmpilato@collab.net wrote:
>
> We already have a quoting mechanism: URI encoding. As long as we
> choose a character which is required to be escaped by the r00lz of
> URIs, then when we see that character prefixing a revision indication,
> we know one of two things:
>
> a) the user is passing an invalid URI to the program, or
> b) the user is indication a revision as part of his URI
>
> If we default to (b), then we can fail gracefully when we attempt to
> valid that the "revision" portion is non-numeric, or doesn't match the
> strings "HEAD", "BASE", etc. If it just so happens that they have a
> real path which contains that character and a revision-looking thing,
> then we have a ready defense: "You didn't pass a valid URI, and the
> invalid URI you *did* pass just happened to look like one of our combo
> URI+revision strings."

Yes, but this makes URL+revision strings invalid URIs, by design.
You really want to specify the revision _within_ the URI.

        Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Aug 22 10:50:37 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.