You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by John Linwood Griffin <gr...@ece.cmu.edu> on 2008/03/09 00:45:10 UTC

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

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@example.com":

    % svn co svn:ssh://user@example.com/@ localdir

JLG

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

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

Posted by Karl Fogel <kf...@red-bean.com>.
John Linwood Griffin <gr...@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@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@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org