Patchwork D8539: git: fix probable missing return

login
register
mail settings
Submitter phabricator
Date May 17, 2020, 5:39 p.m.
Message ID <differential-rev-PHID-DREV-6ekqu6bl56dq7unziccj-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/46327/
State Superseded
Headers show

Comments

phabricator - May 17, 2020, 5:39 p.m.
rom1dep created this revision.
Herald added a reviewer: durin42.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  hgext/git/manifest.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/git/manifest.py b/hgext/git/manifest.py
--- a/hgext/git/manifest.py
+++ b/hgext/git/manifest.py
@@ -205,7 +205,7 @@ 
         return memgittreemanifestctx(self._repo, self._tree)
 
     def find(self, path):
-        self.read()[path]
+        return self.read()[path]
 
 
 @interfaceutil.implementer(repository.imanifestrevisionwritable)