D4996: revlog: update pure nodecache start lookup offset on insertion
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Fri Oct 12 11:18:15 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGba70e3acf58a: revlog: update pure nodecache start lookup offset on insertion (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D4996?vs=11878&id=11890
REVISION DETAIL
https://phab.mercurial-scm.org/D4996
AFFECTED FILES
mercurial/revlog.py
CHANGE DETAILS
diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -1937,6 +1937,11 @@
self.index.append(e)
self.nodemap[node] = curr
+ # Reset the pure node cache start lookup offset to account for new
+ # revision.
+ if self._nodepos is not None:
+ self._nodepos = curr
+
entry = self._io.packentry(e, self.node, self.version, curr)
self._writeentry(transaction, ifh, dfh, entry, deltainfo.data,
link, offset)
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list