Mercurial > public > mercurial-scm > hg
comparison hgext/git/manifest.py @ 44843:288328c6711b
git: fix probable missing return
Differential Revision: https://phab.mercurial-scm.org/D8539
author | Romain DEP. <rom1dep@gmail.com> |
---|---|
date | Mon, 11 May 2020 21:56:43 +0200 |
parents | e9e7156a8d6c |
children | 935c9f347bdb |
comparison
equal
deleted
inserted
replaced
44842:73d6ce2746d2 | 44843:288328c6711b |
---|---|
203 # NB: it's important that we return a memgittreemanifestctx | 203 # NB: it's important that we return a memgittreemanifestctx |
204 # because the caller expects a mutable manifest. | 204 # because the caller expects a mutable manifest. |
205 return memgittreemanifestctx(self._repo, self._tree) | 205 return memgittreemanifestctx(self._repo, self._tree) |
206 | 206 |
207 def find(self, path): | 207 def find(self, path): |
208 self.read()[path] | 208 return self.read()[path] |
209 | 209 |
210 | 210 |
211 @interfaceutil.implementer(repository.imanifestrevisionwritable) | 211 @interfaceutil.implementer(repository.imanifestrevisionwritable) |
212 class memgittreemanifestctx(object): | 212 class memgittreemanifestctx(object): |
213 def __init__(self, repo, tree): | 213 def __init__(self, repo, tree): |