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


Reply via email to