diff -r c4f14db3da1d -r a108f7ff7778 mercurial/context.py --- a/mercurial/context.py Thu Sep 03 13:25:29 2020 +0530 +++ b/mercurial/context.py Thu Sep 17 09:56:05 2020 -0700 @@ -271,7 +271,7 @@ return self._manifest.find(path) except KeyError: raise error.ManifestLookupError( - self._node, path, _(b'not found in manifest') + self._node or b'None', path, _(b'not found in manifest') ) if '_manifestdelta' in self.__dict__ or path in self.files(): if path in self._manifestdelta: @@ -284,7 +284,7 @@ node, flag = mfl[self._changeset.manifest].find(path) except KeyError: raise error.ManifestLookupError( - self._node, path, _(b'not found in manifest') + self._node or b'None', path, _(b'not found in manifest') ) return node, flag