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

Re: svn ls file:///svnrepositories/test@comp doesn't work

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-09-21 12:38:38 CEST

On Sep 21, 2005, at 11:58, ark-d@betasystems.com wrote:

> if I create a repository "test@comp" and import some directories
> into it
> and then want to list these direcories beneath the repostitory with:
>
> svn ls file:///svnrepositories/test_at_comp
>
> I'm getting this error message:
>
> subversion/libsvn_subr/opt.c:508: (apr_err=205000)
> svn: Syntax error parsing revision 'comp'

@ is not a valid character in URLs. If you want @ in a URL, you must
escape it. @ escapes to %40. So it works fine if you do this:

svn ls file:///svnrepositories/test%40comp

This is not Subversion-specific; this applies to all programs that
use URLs (e.g. web browsers...).

The specific error message Subversion is showing you about "parsing
revision 'comp'" is because you can append @123 to a URL to see the
URL at revision 123 instead of at HEAD which is the default. Not what
you wanted in this case, but that's what Subversion is trying to do.
Read about peg revisions:

http://svnbook.red-bean.com/en/1.1/ch07s03.html

> but, if I list
>
> svn ls file:///svnrepositories/test_at_comp/directory1
>
> it's ok.

That's unfortunate because it's inconsistent; I would have hoped
Subversion would have failed on that as well, because the @ is not
escaped properly. But I think I remember reading on this list about
changes that were made to Subversion to make it more tolerant of
unescaped things in URLs, in order that it might not be so very
inconvenient to type some things that would otherwise have to be
escaped. (Most web browsers are also tolerant, and escape it for you
behind the scenes.) The fact that this works is probably a
consequence of that change.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Sep 21 12:40:41 2005

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