mercurial/changelog.py
changeset 47012 d55b71393907
parent 46819 d4ba4d51f85f
child 47072 4c041c71ec01
--- a/mercurial/changelog.py	Mon Apr 19 20:38:52 2021 -0400
+++ b/mercurial/changelog.py	Mon Mar 29 01:52:06 2021 +0200
@@ -11,7 +11,6 @@
 from .node import (
     bin,
     hex,
-    nullid,
 )
 from .thirdparty import attr
 
@@ -221,7 +220,7 @@
 
     def __new__(cls, cl, text, sidedata, cpsd):
         if not text:
-            return _changelogrevision(extra=_defaultextra, manifest=nullid)
+            return _changelogrevision(extra=_defaultextra, manifest=cl.nullid)
 
         self = super(changelogrevision, cls).__new__(cls)
         # We could return here and implement the following as an __init__.