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

Re: svn commit: r1131442 - /subversion/trunk/tools/client-side/svnmucc/svnmucc.c

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Sat, 4 Jun 2011 20:42:41 +0300

Bert Huijben wrote on Sat, Jun 04, 2011 at 19:26:33 +0200:
>
>
> > -----Original Message-----
> > From: danielsh_at_apache.org [mailto:danielsh_at_apache.org]
> > Sent: zaterdag 4 juni 2011 19:13
> > To: commits_at_subversion.apache.org
> > Subject: svn commit: r1131442 - /subversion/trunk/tools/client-
> > side/svnmucc/svnmucc.c
> >
> > Author: danielsh
> > Date: Sat Jun 4 17:12:47 2011
> > New Revision: 1131442
> >
> > URL: http://svn.apache.org/viewvc?rev=1131442&view=rev
> > Log:
> > * tools/client-side/svnmucc/svnmucc.c
> > (main): Allow for leading 'r' when parsing the revnum in the 'cp' action.
> >
> > Modified:
> > subversion/trunk/tools/client-side/svnmucc/svnmucc.c
> >
> > Modified: subversion/trunk/tools/client-side/svnmucc/svnmucc.c
> > URL: http://svn.apache.org/viewvc/subversion/trunk/tools/client-
> > side/svnmucc/svnmucc.c?rev=1131442&r1=1131441&r2=1131442&view=diff
> > ==========================================================
> > ====================
> > --- subversion/trunk/tools/client-side/svnmucc/svnmucc.c (original)
> > +++ subversion/trunk/tools/client-side/svnmucc/svnmucc.c Sat Jun 4
> > 17:12:47 2011
> > @@ -1006,6 +1006,10 @@ main(int argc, const char **argv)
> > else
> > {
> > char *end;
> > +
> > + while (*rev_str == 'r')
> > + ++rev_str;
> > +
>
> Why do you allow rrrrrrrrr12 ?
>
> > action->rev = strtol(rev_str, &end, 0);
> > if (*end)
> > handle_error(svn_error_createf(SVN_ERR_INCORRECT_PARAMS,
> > NULL,
> >
>
>
> I think it should just error out here if you pass more than one r.
>

Because svn allows multiple 'r's too without erroring.

> Bert
>
Received on 2011-06-04 19:43:29 CEST

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.