Show More
@@ -23,6 +23,7 b' from .pycompat import getattr' | |||
|
23 | 23 | from . import ( |
|
24 | 24 | encoding, |
|
25 | 25 | error, |
|
26 | match as matchmod, | |
|
26 | 27 | mdiff, |
|
27 | 28 | pathutil, |
|
28 | 29 | policy, |
@@ -482,17 +483,11 b' class manifestdict(object):' | |||
|
482 | 483 | |
|
483 | 484 | def filesnotin(self, m2, match=None): |
|
484 | 485 | '''Set of files in this manifest that are not in the other''' |
|
485 | if match: | |
|
486 | m1 = self.matches(match) | |
|
487 |
m2 = m2. |
|
|
488 | return m1.filesnotin(m2) | |
|
489 | diff = self.diff(m2) | |
|
490 | files = set( | |
|
491 | filepath | |
|
492 | for filepath, hashflags in pycompat.iteritems(diff) | |
|
493 | if hashflags[1][0] is None | |
|
494 | ) | |
|
495 | return files | |
|
486 | if match is not None: | |
|
487 | match = matchmod.badmatch(match, lambda path, msg: None) | |
|
488 | sm2 = set(m2.walk(match)) | |
|
489 | return {f for f in self.walk(match) if f not in sm2} | |
|
490 | return {f for f in self if f not in m2} | |
|
496 | 491 | |
|
497 | 492 | @propertycache |
|
498 | 493 | def _dirs(self): |
General Comments 0
You need to be logged in to leave comments.
Login now