--- a/mercurial/localrepo.py Wed Mar 10 18:09:21 2021 +0100
+++ b/mercurial/localrepo.py Wed Jan 13 16:14:58 2021 +0100
@@ -21,6 +21,7 @@
hex,
nullid,
nullrev,
+ sha1nodeconstants,
short,
)
from .pycompat import (
@@ -1330,6 +1331,8 @@
self.vfs = hgvfs
self.path = hgvfs.base
self.requirements = requirements
+ self.nodeconstants = sha1nodeconstants
+ self.nullid = self.nodeconstants.nullid
self.supported = supportedrequirements
self.sharedpath = sharedpath
self.store = store
@@ -1676,7 +1679,12 @@
sparsematchfn = lambda: sparse.matcher(self)
return dirstate.dirstate(
- self.vfs, self.ui, self.root, self._dirstatevalidate, sparsematchfn
+ self.vfs,
+ self.ui,
+ self.root,
+ self._dirstatevalidate,
+ sparsematchfn,
+ self.nodeconstants,
)
def _dirstatevalidate(self, node):