mercurial/revlog.py
changeset 46780 6266d19556ad
parent 46779 49fd21f32695
child 46806 9ff4672c8c26
--- a/mercurial/revlog.py	Wed Mar 10 18:09:21 2021 +0100
+++ b/mercurial/revlog.py	Wed Jan 13 16:14:58 2021 +0100
@@ -28,6 +28,7 @@
     nullhex,
     nullid,
     nullrev,
+    sha1nodeconstants,
     short,
     wdirfilenodeids,
     wdirhex,
@@ -651,6 +652,10 @@
             raise error.RevlogError(
                 _(b'unknown version (%d) in revlog %s') % (fmt, self.indexfile)
             )
+
+        self.nodeconstants = sha1nodeconstants
+        self.nullid = self.nodeconstants.nullid
+
         # sparse-revlog can't be on without general-delta (issue6056)
         if not self._generaldelta:
             self._sparserevlog = False