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

Re: 1.5 svn:externals and command line parsing

From: Eric Gillespie <epg_at_pretzelnet.org>
Date: 2007-08-22 20:47:31 CEST

Blair Zajac <blair@orcaware.com> writes:

> $ svn ps svn:externals '-r24000 http://svn.collab.net/repos/svn/trunk trunk' .
> subversion/svn/main.c:1147: (apr_err=205000)
> svn: Syntax error in revision argument '24000
> http://svn.collab.net/repos/svn/trunk svn-trunk'
>
> While most of the time I use svn pe to set these, having a format for an
> external you cannot use via svn ps seems to be broken.

You can, but you didn't tell svn to stop parsing options, so it
sees the leading - on the next word after 'svn:externals' and
parses the -r option and a bogus revision specification.

This definitely works:

svn ps svn:externals -- '-r24000 http://svn.collab.net/repos/svn/trunk trunk' .

And it would be nice if this works:

svn ps svn:externals ' -r24000 http://svn.collab.net/repos/svn/trunk trunk' .

If we don't strip leading white space, we might as well do that.
People might find that form a bit easier.

-- 
Eric Gillespie <*> epg@pretzelnet.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Aug 22 20:45:03 2007

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