Mercurial > public > mercurial-scm > hg
comparison mercurial/context.py @ 10176:24ce8f0c0a39
dirstate: don't check state of subrepo directories
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Thu, 31 Dec 2009 17:19:30 -0600 |
parents | da5209afe1bc |
children | d6512b3e9ac0 |
comparison
equal
deleted
inserted
replaced
10175:fc32b2fc468e | 10176:24ce8f0c0a39 |
---|---|
636 def ancestor(self, c2): | 636 def ancestor(self, c2): |
637 """return the ancestor context of self and c2""" | 637 """return the ancestor context of self and c2""" |
638 return self._parents[0].ancestor(c2) # punt on two parents for now | 638 return self._parents[0].ancestor(c2) # punt on two parents for now |
639 | 639 |
640 def walk(self, match): | 640 def walk(self, match): |
641 return sorted(self._repo.dirstate.walk(match, True, False)) | 641 return sorted(self._repo.dirstate.walk(match, self.substate.keys(), |
642 True, False)) | |
642 | 643 |
643 def dirty(self, missing=False): | 644 def dirty(self, missing=False): |
644 "check whether a working directory is modified" | 645 "check whether a working directory is modified" |
645 | 646 |
646 return (self.p2() or self.branch() != self.p1().branch() or | 647 return (self.p2() or self.branch() != self.p1().branch() or |