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