Show More
@@ -9,7 +9,7 b' from node import nullid, nullrev, short,' | |||
|
9 | 9 | from i18n import _ |
|
10 | 10 | import mdiff, error, util, scmutil, subrepo, patch, encoding, phases |
|
11 | 11 | import match as matchmod |
|
12 |
import |
|
|
12 | import os, errno, stat | |
|
13 | 13 | import obsolete as obsmod |
|
14 | 14 | import repoview |
|
15 | 15 | import fileset |
@@ -595,19 +595,17 b' class changectx(basectx):' | |||
|
595 | 595 | def walk(self, match): |
|
596 | 596 | '''Generates matching file names.''' |
|
597 | 597 | |
|
598 |
# |
|
|
599 | match = copy.copy(match) | |
|
600 | oldbad = match.bad | |
|
598 | # Wrap match.bad method to have message with nodeid | |
|
601 | 599 | def bad(fn, msg): |
|
602 | 600 | # The manifest doesn't know about subrepos, so don't complain about |
|
603 | 601 | # paths into valid subrepos. |
|
604 | 602 | if any(fn == s or fn.startswith(s + '/') |
|
605 | 603 | for s in self.substate): |
|
606 | 604 | return |
|
607 |
|
|
|
608 | match.bad = bad | |
|
605 | match.bad(fn, _('no such file in rev %s') % self) | |
|
609 | 606 | |
|
610 | return self._manifest.walk(match) | |
|
607 | m = matchmod.badmatch(match, bad) | |
|
608 | return self._manifest.walk(m) | |
|
611 | 609 | |
|
612 | 610 | def matches(self, match): |
|
613 | 611 | return self.walk(match) |
General Comments 0
You need to be logged in to leave comments.
Login now