diff --git a/mercurial/cext/revlog.c b/mercurial/cext/revlog.c --- a/mercurial/cext/revlog.c +++ b/mercurial/cext/revlog.c @@ -1243,7 +1243,7 @@ if (nt_insert(self, n, rev) == -1) return -1; } - self->ntrev = rev; + self->ntrev = -1; } return 0; }