--- a/mercurial/context.py Mon Jun 15 00:03:27 2009 +0200
+++ b/mercurial/context.py Mon Jun 15 02:45:38 2009 -0500
@@ -7,7 +7,7 @@
from node import nullid, nullrev, short, hex
from i18n import _
-import ancestor, bdiff, error, util
+import ancestor, bdiff, error, util, subrepo
import os, errno
propertycache = util.propertycache
@@ -73,6 +73,10 @@
p = p[:-1]
return [changectx(self._repo, x) for x in p]
+ @propertycache
+ def substate(self):
+ return subrepo.state(self)
+
def __contains__(self, key):
return key in self._manifest