[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: <cmpilato_at_collab.net>
Date: 2003-08-05 01:25:06 CEST

kfogel@collab.net writes:

> Heh, that's a cute solution.
>
> No matter what we choose, we're going to have to come up with a
> quoting or escaping mechanism of some sort.

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."

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 5 01:27:19 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.