Commit 2e2cfc3bea0 by Augie Fackler

context: use manifest.find() instead of two separate calls

I noticed this while debugging an extension that's implementing the manifest
interface. Always nice to save a function call.

Differential Revision:
parent 54d185eb24b
Pipeline #2929 failed with stage
in 60 minutes 5 seconds
......@@ -267,7 +267,7 @@ class basectx(object):
def _fileinfo(self, path):
if '_manifest' in self.__dict__:
return self._manifest[path], self._manifest.flags(path)
return self._manifest.find(path)
except KeyError:
raise error.ManifestLookupError(
self._node, path, _(b'not found in manifest')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment