changeset 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 812a094a7477
children 81be242a1b5c
files mercurial/context.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Thu Aug 01 13:07:13 2024 +0100
+++ b/mercurial/context.py	Thu Aug 01 13:14:05 2024 +0200
@@ -265,6 +265,9 @@
                 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 (