mercurial/context.py
changeset 45489 a108f7ff7778
parent 45228 1476ec96965f
child 45499 19590b126764
--- 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