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