mercurial/pure/parsers.py
changeset 44369 e41a164db7a9
parent 44367 50ad851efd9b
child 44370 8374b69aef75
--- a/mercurial/pure/parsers.py	Wed Jan 15 15:50:04 2020 +0100
+++ b/mercurial/pure/parsers.py	Wed Jan 15 15:50:14 2020 +0100
@@ -170,15 +170,15 @@
         self._nm_root = self._nm_max_idx = self._nm_rev = None
         return data
 
-    def update_nodemap_data(self, nm_data):
-        """provide full blokc of persisted binary data for a nodemap
+    def update_nodemap_data(self, docket, nm_data):
+        """provide full block of persisted binary data for a nodemap
 
         The data are expected to come from disk. See `nodemap_data_all` for a
         produceur of such data."""
         if nm_data is not None:
             self._nm_root, self._nm_max_idx = nodemaputil.parse_data(nm_data)
             if self._nm_root:
-                self._nm_rev = len(self) - 1
+                self._nm_rev = docket.tip_rev
             else:
                 self._nm_root = self._nm_max_idx = self._nm_rev = None