问题
What is the maximum revision number supported by SVN? The repo is of type FSFS, hosted on a Fedora box.
Thank you,
回答1:
If you're using a 32-bit computer it's 2147483647, that's 231-1, the maximum value of a signed 32-bit integer. For a 64-bit computer, it's... more. In any case, it should be enough for any practical purpose where humans are doing commits.
In practice, you're probably going to run out of disk space or your directory indexes become too slow before you hit the maximum revision number limit.
回答2:
Possibly more than 2 billion. There is an interesting discussion at http://svn.haxx.se/users/archive-2005-03/0394.shtml
回答3:
I guess it is large enough not to bother.
Let's suppose it is stored in a 32 bit value. This means that if you commit once a second, you'll need 136 years to get an overflow.
回答4:
The time based answers assume that only one person is doing the commits. Here, we have at least a dozen... but they're all working, not posting commits once a second. Then again, it depends on how well you use the tool. You can commit parts of a project at a time, instead of the whole project at once. ... but given the other answers, this point is really moot.
来源:https://stackoverflow.com/questions/816523/what-is-the-maximum-revision-number-supported-by-svn