--- a/mercurial/revlog.py Fri Feb 14 15:03:26 2020 +0100
+++ b/mercurial/revlog.py Tue Feb 11 11:18:52 2020 +0100
@@ -545,9 +545,6 @@
indexdata = b''
self._initempty = True
try:
- nodemap_data = nodemaputil.persisted_data(self)
- if nodemap_data is not None:
- self._nodemap_docket = nodemap_data[0]
with self._indexfp() as f:
if (
mmapindexthreshold is not None
@@ -639,6 +636,7 @@
if use_nodemap:
nodemap_data = nodemaputil.persisted_data(self)
if nodemap_data is not None:
+ self._nodemap_docket = nodemap_data[0]
index.update_nodemap_data(*nodemap_data)
except (ValueError, IndexError):
raise error.RevlogError(