Show More
@@ -598,6 +598,9 class changectx(basectx): | |||
|
598 | 598 | continue |
|
599 | 599 | match.bad(fn, _('no such file in rev %s') % self) |
|
600 | 600 | |
|
601 | def matches(self, match): | |
|
602 | return self.walk(match) | |
|
603 | ||
|
601 | 604 | class basefilectx(object): |
|
602 | 605 | """A filecontext object represents the common logic for its children: |
|
603 | 606 | filectx: read-only access to a filerevision that is already present |
@@ -1144,6 +1147,9 class committablectx(basectx): | |||
|
1144 | 1147 | return sorted(self._repo.dirstate.walk(match, sorted(self.substate), |
|
1145 | 1148 | True, False)) |
|
1146 | 1149 | |
|
1150 | def matches(self, match): | |
|
1151 | return sorted(self._repo.dirstate.matches(match)) | |
|
1152 | ||
|
1147 | 1153 | def ancestors(self): |
|
1148 | 1154 | for a in self._repo.changelog.ancestors( |
|
1149 | 1155 | [p.rev() for p in self._parents]): |
General Comments 0
You need to be logged in to leave comments.
Login now