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

Re: vsn-rsc-url adaptations

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-06-05 22:44:55 CEST

On Wed, Jun 05, 2002 at 03:30:59PM -0500, Ben Collins-Sussman wrote:
> Greg Stein <gstein@lyra.org> writes:
>
> > Ah... You're sending "18.1" and the atoi() in your code is translating that
> > as revision 18. That isn't going to work so well :-)
> >
> > So there are two things to do:
> >
> > 1) SVN_STR_TO_REV(const char *) ought to have a companion that will take a
> > ptr/len pair and convert the whole thing (and produce an error if the
> > entire text is not consumed).
>
> Do we really need to file an issue on this? I mean, as long as
> revisions remain integers, we're okay. Do we expect float-strings to
> be thrown at SVN_STR_TO_REV anytime?

It really depends on how anal we want to be in the URLs that we accept.
Personally, I'd prefer that people aren't allowed to send illegal URLs. But
it does mean some extra work. Filing an issue might be nice, but low
priority...

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jun 6 00:23:43 2002

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.