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.
--- 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):