basectx: preserve loading the cached manifest in _prestatus
authorSean Farley <sean.michael.farley@gmail.com>
Wed, 23 Apr 2014 16:06:23 -0500
changeset 21589 2945fdc38aad
parent 21588 4944c488f738
child 21590 e5deefcaa12b
basectx: preserve loading the cached manifest in _prestatus This is just a copy from localrepo.status and is a small step to removing that method entirely. The prestatus hook is only called for changectx's, thereby ensuring that the same behavior is guaranteed.
mercurial/context.py
--- a/mercurial/context.py	Fri Sep 20 21:59:34 2013 -0500
+++ b/mercurial/context.py	Wed Apr 23 16:06:23 2014 -0500
@@ -93,6 +93,9 @@
         For example, this allows other contexts, such as workingctx, to query
         the dirstate before comparing the manifests.
         """
+        # load earliest manifest first for caching reasons
+        if self.rev() < other.rev():
+            self.manifest()
         return s
 
     def _poststatus(self, other, s, match, listignored, listclean, listunknown):