mercurial/context.py
changeset 8812 859f841937d0
parent 8717 e8de59577257
child 8813 db3c1ab0e632
--- 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