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

Re: svn log: 1.7 and large limits

From: Johan Corveleyn <jcorvel_at_gmail.com>
Date: Tue, 31 Jul 2012 21:20:43 +0200

On Tue, Jul 31, 2012 at 9:18 PM, Philip Martin
<philip.martin_at_wandisco.com> wrote:
> Dmitry Pavlenko <pavlenko_at_tmatesoft.com> writes:
>
>> Hi all.
>> I've noticed that in SVN 1.7 limit behaviour has changed. Is that expected or is that a bug?
>
>> $ $svn16 log http://localhost:59714/repos -l 10000000000
>> ------------------------------------------------------------------------
>> r2 | (no author) | 2012-07-11 13:15:58 +0200 (Срд, 11 Июл 2012) | 1 line
>>
>>
>> ------------------------------------------------------------------------
>> r1 | (no author) | 2012-07-11 13:15:58 +0200 (Срд, 11 Июл 2012) | 1 line
>>
>>
>> ------------------------------------------------------------------------
>> $ $svn17 log http://localhost:59714/repos -l 10000000000
>> svn: E205000: Non-numeric limit argument given
>> svn: E200004: Number '10000000000' is out of range '[-2147483648, 2147483647]'
>
> Internally Subversion always uses a 32-bit value for limit. In 1.6 the
> command line parser doesn't detect out-of-range values on the command
> and any such values are silently truncated. In 1.7 the command line
> parser detects out-of-range values.

Also slightly related, this recent discussion on dev@:

http://svn.haxx.se/dev/archive-2012-06/0263.shtml

-- 
Johan
Received on 2012-07-31 21:21:35 CEST

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

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