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

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

From: John Linwood Griffin <griffin2_at_ece.cmu.edu>
Date: Sat, 08 Mar 2008 19:45:10 -0500

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

JLG

---------------------------------------------------------------------
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 03:19:09 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.