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

Re: Question on svnsync/main.c:1528

From: Stephen Butler <sbutler_at_elego.de>
Date: Sun, 26 Dec 2010 21:33:33 +0100

On Dec 26, 2010, at 15:54 , Dongsheng Song wrote:

> Hi,
>
> I'm confused on the following code:
>
> if ((opt_baton->start_rev.kind != svn_opt_revision_unspecified)
> || (opt_baton->end_rev.kind != svn_opt_revision_unspecified))
> return svn_error_create(
> SVN_ERR_CL_ARG_PARSING_ERROR, NULL,
> _("Cannot specify revisions via both command-line arguments "
> "and the --revision (-r) option"));
>
> It seem that if I can not specify start_rev or end_rev. But the
> message is very strange,
> Is ' --revision (-r) option' not a command-line argument?

Hi Dongsheng,

On the command-line, "--revision" is an option rather than an argument.

Unlike other svn commands, svnsync allows a revision number or range
as a normal argument (without --revision). A source comment near that
line says

[[[
  This is the old "... TO_URL REV[:REV2]" syntax.
]]]

HTH,

Steve

>
> Thanks,
> Dongsheng

--
Stephen Butler | Senior Consultant
elego Software Solutions GmbH
Gustav-Meyer-Allee 25 | 13355 Berlin | Germany
fon: +49 30 2345 8696 | mobile: +49 163 25 45 015
fax: +49 30 2345 8695 | http://www.elegosoft.com
Geschäftsführer: Olaf Wagner | Sitz der Gesellschaft: Berlin
Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
Received on 2010-12-26 21:34:18 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.