Show More
@@ -566,7 +566,8 b' class matchctx(object):' | |||||
566 | def filter(self, files): |
|
566 | def filter(self, files): | |
567 | return [f for f in files if f in self.subset] |
|
567 | return [f for f in files if f in self.subset] | |
568 | def existing(self): |
|
568 | def existing(self): | |
569 | assert self._existingenabled, 'unexpected existing() invocation' |
|
569 | if not self._existingenabled: | |
|
570 | raise error.ProgrammingError('unexpected existing() invocation') | |||
570 | if self._status is not None: |
|
571 | if self._status is not None: | |
571 | removed = set(self._status[3]) |
|
572 | removed = set(self._status[3]) | |
572 | unknown = set(self._status[4] + self._status[5]) |
|
573 | unknown = set(self._status[4] + self._status[5]) |
@@ -446,7 +446,7 b" Test detection of unintentional 'matchct" | |||||
446 | > EOF |
|
446 | > EOF | |
447 |
|
447 | |||
448 | $ fileset 'existingcaller()' 2>&1 | tail -1 |
|
448 | $ fileset 'existingcaller()' 2>&1 | tail -1 | |
449 |
|
|
449 | *ProgrammingError: *unexpected existing() invocation* (glob) | |
450 |
|
450 | |||
451 | Test 'revs(...)' |
|
451 | Test 'revs(...)' | |
452 | ================ |
|
452 | ================ |
General Comments 0
You need to be logged in to leave comments.
Login now