comparison mercurial/context.py @ 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 02a8612ddec2
children e5deefcaa12b
comparison
equal deleted inserted replaced
21588:4944c488f738 21589:2945fdc38aad
91 """provide a hook to allow child objects to preprocess status results 91 """provide a hook to allow child objects to preprocess status results
92 92
93 For example, this allows other contexts, such as workingctx, to query 93 For example, this allows other contexts, such as workingctx, to query
94 the dirstate before comparing the manifests. 94 the dirstate before comparing the manifests.
95 """ 95 """
96 # load earliest manifest first for caching reasons
97 if self.rev() < other.rev():
98 self.manifest()
96 return s 99 return s
97 100
98 def _poststatus(self, other, s, match, listignored, listclean, listunknown): 101 def _poststatus(self, other, s, match, listignored, listclean, listunknown):
99 """provide a hook to allow child objects to postprocess status results 102 """provide a hook to allow child objects to postprocess status results
100 103