# HG changeset patch # User Sean Farley # Date 1398287183 18000 # Node ID 2945fdc38aad2d95e29ff956d0af3696ee97fd2b # Parent 4944c488f738e42a76a913f9c14d15b9cbce42a9 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. diff -r 4944c488f738 -r 2945fdc38aad 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):