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

Re: svn doesn't accept @ in URL's (must be encoded as %40)

From: Karl Fogel <kfogel_at_red-bean.com>
Date: Wed, 15 Oct 2008 12:37:43 -0400

Vincent Lefevre <vincent+svn_at_vinc17.org> writes:
> I don't know if this is a bug or not, but svn doesn't accept the
> @ character in URL's (at least until 1.5.3); this character must
> be encoded as "%40". For instance:
>
> $ svn co svn+ssh://svn@localhost
> svn: Try 'svn help' for more info
> svn: Syntax error parsing revision 'localhost'
>
> I think that if what follows @ doesn't correspond to a revision,
> it should be regarded as part of the URL.
>
> Otherwise the Subversion book should be updated to document this
> point and correct the examples.

I think the idea was to leave us open to having new revision keywords in
the future. The way to escape the "@" is to put another "@" at the end,
since only the last "@" is interpreted as a possible revision
specifier:

   $ svn co svn+ssh://svn@localhost@

If the Subversion book is not clear on this point, it needs to be
patched.

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-10-15 18:38:18 CEST

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.