# HG changeset patch # User Pierre-Yves David # Date 2024-08-01 11:14:05 # Node ID dcbe7fda53e4c18e02efd48b769629841dbff24f # Parent 812a094a7477cae3243dfea23605aa211f2ba94d context: some gratuitous documentation improvement I wrote it as I was reading the code. diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -265,6 +265,9 @@ class basectx: raise error.ManifestLookupError( self._node or b'None', path, _(b'not found in manifest') ) + # Try to find the file in the manifest delta that can be faster to read + # than a full manifest. If we fail to find the file, it might still + # exist in the full manifest, so lets look for it there. if '_manifestdelta' in self.__dict__ or path in self.files(): if path in self._manifestdelta: return (