workingctx: add note about super._prestatus calling manifest
authorSean Farley <sean.michael.farley@gmail.com>
Wed, 23 Apr 2014 16:06:42 -0500
changeset 21590 e5deefcaa12b
parent 21589 2945fdc38aad
child 21591 660ef8ca8c3c
workingctx: add note about super._prestatus calling manifest
mercurial/context.py
--- a/mercurial/context.py	Wed Apr 23 16:06:23 2014 -0500
+++ b/mercurial/context.py	Wed Apr 23 16:06:42 2014 -0500
@@ -1310,6 +1310,9 @@
         We use this prestatus hook to populate the status with information from
         the dirstate.
         """
+        # doesn't need to call super; if that changes, be aware that super
+        # calls self.manifest which would slow down the common case of calling
+        # status against a workingctx's parent
         return self._dirstatestatus(match, listignored, listclean, listunknown)
 
     def _poststatus(self, other, s, match, listignored, listclean, listunknown):