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

RFC: URL encoding switch and option (was Re: URI encoding URLs on the cmdline?)

From: Pierre THIERRY <pierre.thierry_at_moine-fou.org>
Date: 2004-06-11 00:45:11 CEST

> We could have compatibility problems if scripts assume they have to
> encode the URLs themselves.

I don't think the default behaviour should be changed. SVN should
continue expecting URIs.

The easiest way to deal with URL encoding seems to me to add an option
for it:

--url-encode (-e) LOCATION

    Apply the RFC 2396 encoding to non-ASCII charecters in LOCATION and
    use the result as the repository URL.

--url-encode-all (-E) LOCATION

    Apply the RFC 2396 encoding to non-ASCII and reserved characters
    (except '/') to LOCATION and use the result as the repository URL.

And there should also be a configuration option, maybe in the
miscellany section:

url-encode

    This tells Subversion when to automatically encode the repository
    location. The flag has three possible values:

    - none. This is the default value. If the location is not a valid
      URL, the user will get an error.
    - non-ascii. It's equivalent to using the command-line -e switch.
    - all. It's equivalent to using the command-line -E switch.

Optionally,
le Moine Fou

-- 
pierre.thierry@moine-fou.org
OpenPGP 0xD9D50D8A

Received on Fri Jun 11 00:45:49 2004

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.