# HG changeset patch # User Sean Farley # Date 2013-08-05 22:21:23 # Node ID 78155484ae343b0d3fb32a1af6433b0668a0217f # Parent 730fdcaa791d5da6ad312aa2939ab923775d90c4 basectx: move substate from changectx diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -53,6 +53,10 @@ class basectx(object): def __ne__(self, other): return not (self == other) + @propertycache + def substate(self): + return subrepo.state(self, self._repo.ui) + def rev(self): return self._rev def node(self): @@ -193,10 +197,6 @@ class changectx(basectx): p = p[:-1] return [changectx(self._repo, x) for x in p] - @propertycache - def substate(self): - return subrepo.state(self, self._repo.ui) - def __contains__(self, key): return key in self._manifest