Show More
@@ -149,9 +149,7 b' def _computeforwardmissing(a, b):' | |||
|
149 | 149 | This is its own function so extensions can easily wrap this call to see what |
|
150 | 150 | files _forwardcopies is about to process. |
|
151 | 151 | """ |
|
152 | missing = set(b.manifest().iterkeys()) | |
|
153 | missing.difference_update(a.manifest().iterkeys()) | |
|
154 | return missing | |
|
152 | return b.manifest().filesnotin(a.manifest()) | |
|
155 | 153 | |
|
156 | 154 | def _forwardcopies(a, b): |
|
157 | 155 | '''find {dst@b: src@a} copy mapping where a is an ancestor of b''' |
@@ -38,6 +38,12 b' class manifestdict(dict):' | |||
|
38 | 38 | ret._flags[fn] = flags |
|
39 | 39 | return ret |
|
40 | 40 | |
|
41 | def filesnotin(self, m2): | |
|
42 | '''Set of files in this manifest that are not in the other''' | |
|
43 | files = set(self.iterkeys()) | |
|
44 | files.difference_update(m2.iterkeys()) | |
|
45 | return files | |
|
46 | ||
|
41 | 47 | def matches(self, match): |
|
42 | 48 | '''generate a new manifest filtered by the match argument''' |
|
43 | 49 | if match.always(): |
General Comments 0
You need to be logged in to leave comments.
Login now