Stefan Sperling wrote on Wed, Oct 19, 2011 at 15:14:46 +0200: > On Wed, Oct 19, 2011 at 03:07:52PM +0200, Daniel Shahaf wrote: > > People who are bitten by this will not be able to commit anything with > > this revision applied. > > Why? I thought this was some transient error, and that we prevent a bad > revision from enterting the repository. > > > Should we add a way to turn off the new validation? > > If you're saying that this can prevent people from committing new > revisions, because a wrong pred count in a transaction is a permanent, > rather than transient error condition, I think we should pull this > revision from 1.7.x. > > But why do you think that every transaction will have a wrong pred > count once one transaction had a wrong pred count?
The revision works as intended for new repositories. But for repositories where the predecessor count on "/" is already wrong, the error doesn't fix itself... If /@50's predecessor is /@20, then /@50's pred-count is 21; but /@51's pred-count would be 22, not 51. I'm working on a different fix that doesn't have this problem: checking if 50 - 21 == 51 - 22, and erroring out if that's not the case.

