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

Re: Bug: IP address bogusly interpreted as peg revision

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Fri, 23 May 2008 21:17:50 +0100

Jens Seidel wrote:
> I noticed the following bug in the 1.5 branch:
> A IP address may bogusly interpreted as peg revision as demonstrated by
>
> $ svn log svn+ssh://svn@10.0.1.1
[...]
> svn: Syntax error parsing revision '10.0.1.1'

That's unfortunate, but not a bug. It's a natural consequence of defining the
command-line syntax as

   PATH-OR-URL[@PEG]

There are various work-arounds: the canonical way to "escape" an argument with
no peg revision is to add an "@":

   $ svn log svn+ssh://svn@10.0.1.1@

but in this particular example you might prefer to end the URL with "/":

   $ svn log svn+ssh://svn@10.0.1.1/

or, as you showed, you can use "@HEAD".

Thanks for pointing it out.
- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-05-23 22:18:08 CEST

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