[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: John Peacock <john.peacock_at_havurah-software.org>
Date: Wed, 15 Oct 2008 09:25:01 -0400

Vincent Lefevre wrote:
> 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.

I find only a single mention in the Subversion book to passing the
username as part of the hostname (when discussing custom transport
methods and rsh in particular). Out of curiosity, does this work:

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

with a trailing slash? I believe the URL parser code gets called after
Subversion has already preparsed what was passed in for peg revisions.

Of course, you can always add a server stanza to your .ssh/config file
to force a specific username, in order to work around this problem.


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 15:25:18 CEST

This is an archived mail posted to the Subversion Dev mailing list.