Mercurial > public > mercurial-scm > hg-stable
diff mercurial/context.py @ 8812:859f841937d0
subrepo: introduce basic state parsing
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 15 Jun 2009 02:45:38 -0500 |
parents | e8de59577257 |
children | db3c1ab0e632 |
line wrap: on
line diff
--- 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