Show More
@@ -482,8 +482,20 b' class treemanifest(object):' | |||
|
482 | 482 | |
|
483 | 483 | def filesnotin(self, m2): |
|
484 | 484 | '''Set of files in this manifest that are not in the other''' |
|
485 |
files = set( |
|
|
486 | files.difference_update(m2.iterkeys()) | |
|
485 | files = set() | |
|
486 | def _filesnotin(t1, t2): | |
|
487 | for d, m1 in t1._dirs.iteritems(): | |
|
488 | if d in t2._dirs: | |
|
489 | m2 = t2._dirs[d] | |
|
490 | _filesnotin(m1, m2) | |
|
491 | else: | |
|
492 | files.update(m1.iterkeys()) | |
|
493 | ||
|
494 | for fn in t1._files.iterkeys(): | |
|
495 | if fn not in t2._files: | |
|
496 | files.add(t1._subpath(fn)) | |
|
497 | ||
|
498 | _filesnotin(self, m2) | |
|
487 | 499 | return files |
|
488 | 500 | |
|
489 | 501 | @propertycache |
General Comments 0
You need to be logged in to leave comments.
Login now