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