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

svn log: 1.7 and large limits

From: Dmitry Pavlenko <pavlenko_at_tmatesoft.com>
Date: Tue, 31 Jul 2012 20:44:18 +0200

Hi all.
I've noticed that in SVN 1.7 limit behaviour has changed. Is that expected or is that a bug?

As I understand subversion supports revisions up to Long.MAX_VALUE = 0x7fffffffffffffffL =
9223372036854775807 > 1000000000000000 > 10000000000

So both limits are possible thoeoretically. I ask because Java programmers often use Long.MAX_VALUE
as "infinity" value instead of 0.

$ $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]'
 
$ $svn16 log file://`pwd` -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 file://`pwd` -l 10000000000
svn: E205000: Non-numeric limit argument given
svn: E200004: Number '10000000000' is out of range '[-2147483648, 2147483647]'
 
Let's now try with larger limit:
 
$ $svn16 log http://localhost:59714/repos -l 1000000000000000
svn: Argument to --limit must be positive
 
$ $svn17 log http://localhost:59714/repos -l 1000000000000000
svn: E205000: Non-numeric limit argument given
svn: E200004: Number '1000000000000000' is out of range '[-2147483648, 2147483647]'
 
$ $svn16 log file://`pwd` -l 1000000000000000
svn: Argument to --limit must be positive
 
$ $svn17 log file://`pwd` -l 1000000000000000
svn: E205000: Non-numeric limit argument given
svn: E200004: Number '1000000000000000' is out of range '[-2147483648, 2147483647]'
Received on 2012-07-31 20:46:07 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.