changeset 11110 | 22f5ad0b5857 |
parent 11106 | 213ca9ffcddb |
child 11144 | ca46910dd9ea |
--- a/mercurial/context.py Sat May 01 23:05:19 2010 +0200 +++ b/mercurial/context.py Sat May 01 23:05:21 2010 +0200 @@ -752,7 +752,11 @@ def dirty(self, missing=False): "check whether a working directory is modified" - + # check subrepos first + for s in self.substate: + if self.sub(s).dirty(): + return True + # check current working dir return (self.p2() or self.branch() != self.p1().branch() or self.modified() or self.added() or self.removed() or (missing and self.deleted()))