Show More
@@ -17,7 +17,7 b' def dodiff(fp, ui, repo, node1, node2, f' | |||
|
17 | 17 | changes = repo.changes(node1, node2, files, match=match) |
|
18 | 18 | modified, added, removed, deleted, unknown = changes |
|
19 | 19 | if files: |
|
20 |
modified, added, removed = map(lambda x: filterfiles( |
|
|
20 | modified, added, removed = map(lambda x: filterfiles(files, x), | |
|
21 | 21 | (modified, added, removed)) |
|
22 | 22 | |
|
23 | 23 | if not modified and not added and not removed: |
@@ -266,7 +266,7 b' def dodiff(fp, ui, repo, node1, node2, f' | |||
|
266 | 266 | changes = repo.changes(node1, node2, files, match=match) |
|
267 | 267 | modified, added, removed, deleted, unknown = changes |
|
268 | 268 | if files: |
|
269 |
modified, added, removed = map(lambda x: filterfiles( |
|
|
269 | modified, added, removed = map(lambda x: filterfiles(files, x), | |
|
270 | 270 | (modified, added, removed)) |
|
271 | 271 | |
|
272 | 272 | if not modified and not added and not removed: |
@@ -226,13 +226,13 b' class hgweb(object):' | |||
|
226 | 226 | yield self.t(t1, tag=t, **args) |
|
227 | 227 | |
|
228 | 228 | def diff(self, node1, node2, files): |
|
229 |
def filterfiles( |
|
|
230 | l = [x for x in list if x in files] | |
|
229 | def filterfiles(filters, files): | |
|
230 | l = [x for x in list if x in filters] | |
|
231 | 231 | |
|
232 |
for |
|
|
233 |
if |
|
|
234 |
|
|
|
235 |
l += [x for x in |
|
|
232 | for t in filters: | |
|
233 | if t[-1] != os.sep: | |
|
234 | t += os.sep | |
|
235 | l += [x for x in files if x.startswith(t)] | |
|
236 | 236 | return l |
|
237 | 237 | |
|
238 | 238 | parity = [0] |
@@ -267,7 +267,7 b' class hgweb(object):' | |||
|
267 | 267 | |
|
268 | 268 | modified, added, removed, deleted, unknown = r.changes(node1, node2) |
|
269 | 269 | if files: |
|
270 |
modified, added, removed = map(lambda x: filterfiles( |
|
|
270 | modified, added, removed = map(lambda x: filterfiles(files, x), | |
|
271 | 271 | (modified, added, removed)) |
|
272 | 272 | |
|
273 | 273 | for f in modified: |
General Comments 0
You need to be logged in to leave comments.
Login now