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

Re: Solution to "svn: Syntax error parsing revision..." using svn+ssh

From: Karl Fogel <kfogel_at_red-bean.com>
Date: Sat, 08 Mar 2008 23:46:23 -0500

John Linwood Griffin <griffin2_at_ece.cmu.edu> writes:
> This problem drove me crazy, and the solution is so simple that I
> wanted to send it to this list for potential inclusion in the SVN FAQ.
>
> If you use the svn+ssh access method and try to check out the root of
> a repository, you get this error:
>
> % svn co svn+ssh://user@example.com/
> svn: Syntax error parsing revision 'example.com'
>
> The solution is to add another @ symbol on the end of the URL, which
> tells subversion not to treat the first @ as the revision signifier.
>
> % svn co svn+ssh://user@example.com/@
>
> To get a subdirectory of the root put it before the new @:
>
> % svn co svn+ssh://user@example.com/subdirectory@
>
> You'll probably want to specifically specify a path for the local
> directory, otherwise your repositroy will get checked out into the
> directory "user_at_example.com":
>
> % svn co svn:ssh://user@example.com/@ localdir

Your workaround is good, but...

I think Subversion ought to be able to guess, just from looking at the
form of the URL, that the first "@" is almost certainly not a revision
specifier, and DTRT.

If you can verify that this problem still exists with latest trunk SVN,
could you file an issue please, pointing to this thread?

Thank you,
-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-09 05:46:41 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.