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

Re: Changing the log API is not worth it

From: Greg Stein <gstein_at_gmail.com>
Date: Fri, 15 Jun 2012 05:18:35 -0400

On Thu, Jun 14, 2012 at 5:46 PM, Julian Foad <julianfoad_at_btopenworld.com> wrote:
> Stefan Fuhrmann wrote:
>
>> Yesterday, I discovered an inconsistency in our log API.
>> svn_revnum_t is a long while the "limit" parameter is
>> an int.
>
> It is not semantically necessary to be able to request an arbitrarily large batch of log messages -- in other words, for the "limit" parameter to be the same as, or as big as, svn_revnum_t.
>
>> Since we have a practical limit of 2^31 on our revision
>> numbers
>
> Just curious: can you easily point to the source(s) of this practical limit?  I'm not particularly surprised, but I wasn't aware of it.

svn_revnum_t is a long, which is 32 bits on many systems. And given
that it is *signed*, then we realistically only support 2 billion
revisions in one repository.

Cheers,
-g
Received on 2012-06-15 11:19:09 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.