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

login
register
mail settings
Submitter phabricator
Date Feb. 11, 2020, 5:43 a.m.
Message ID <c8943d86ebde31b2ee6b048eb12d1620@localhost.localdomain>
Download mbox | patch
Permalink /patch/45165/
State Not Applicable
Headers show

Comments

phabricator - Feb. 11, 2020, 5:43 a.m.
Closed by commit rHG2e2cfc3bea0b: context: use manifest.find() instead of two separate calls (authored by durin42).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8109?vs=20143&id=20147

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8109/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8109

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -267,7 +267,7 @@ 
     def _fileinfo(self, path):
         if '_manifest' in self.__dict__:
             try:
-                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')