Mercurial > hg
changeset 21589:2945fdc38aad
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.
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Wed, 23 Apr 2014 16:06:23 -0500 |
parents | 4944c488f738 |
children | e5deefcaa12b |
files | mercurial/context.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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):