--- a/mercurial/statichttprepo.py Wed Mar 10 18:09:21 2021 +0100
+++ b/mercurial/statichttprepo.py Wed Jan 13 16:14:58 2021 +0100
@@ -12,6 +12,7 @@
import errno
from .i18n import _
+from .node import sha1nodeconstants
from . import (
branchmap,
changelog,
@@ -198,6 +199,8 @@
requirements, supportedrequirements
)
localrepo.ensurerequirementscompatible(ui, requirements)
+ self.nodeconstants = sha1nodeconstants
+ self.nullid = self.nodeconstants.nullid
# setup store
self.store = localrepo.makestore(requirements, self.path, vfsclass)
@@ -207,7 +210,7 @@
self._filecache = {}
self.requirements = requirements
- rootmanifest = manifest.manifestrevlog(self.svfs)
+ rootmanifest = manifest.manifestrevlog(self.nodeconstants, self.svfs)
self.manifestlog = manifest.manifestlog(
self.svfs, self, rootmanifest, self.narrowmatch()
)