Mercurial > hg-stable
comparison mercurial/context.py @ 51814:dcbe7fda53e4
context: some gratuitous documentation improvement
I wrote it as I was reading the code.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 01 Aug 2024 13:14:05 +0200 |
parents | 18c8c18993f0 |
children | 87a8190e66fe |
comparison
equal
deleted
inserted
replaced
51813:812a094a7477 | 51814:dcbe7fda53e4 |
---|---|
263 return self._manifest.find(path) | 263 return self._manifest.find(path) |
264 except KeyError: | 264 except KeyError: |
265 raise error.ManifestLookupError( | 265 raise error.ManifestLookupError( |
266 self._node or b'None', path, _(b'not found in manifest') | 266 self._node or b'None', path, _(b'not found in manifest') |
267 ) | 267 ) |
268 # Try to find the file in the manifest delta that can be faster to read | |
269 # than a full manifest. If we fail to find the file, it might still | |
270 # exist in the full manifest, so lets look for it there. | |
268 if '_manifestdelta' in self.__dict__ or path in self.files(): | 271 if '_manifestdelta' in self.__dict__ or path in self.files(): |
269 if path in self._manifestdelta: | 272 if path in self._manifestdelta: |
270 return ( | 273 return ( |
271 self._manifestdelta[path], | 274 self._manifestdelta[path], |
272 self._manifestdelta.flags(path), | 275 self._manifestdelta.flags(path), |