##// END OF EJS Templates
fix patch.patch.filterfiles....
Vadim Gelfer -
r2881:eab07a7b default
parent child Browse files
Show More
@@ -277,16 +277,15 b' def diff(repo, node1=None, node2=None, f'
277 modified, added, removed, deleted, unknown = changes
277 modified, added, removed, deleted, unknown = changes
278 if files:
278 if files:
279 def filterfiles(filters):
279 def filterfiles(filters):
280 l = [x for x in files if x in filters]
280 l = [x for x in filters if x in files]
281
281
282 for t in filters:
282 for t in files:
283 if t and t[-1] != "/":
283 if not t.endswith("/"):
284 t += "/"
284 t += "/"
285 l += [x for x in files if x.startswith(t)]
285 l += [x for x in filters if x.startswith(t)]
286 return l
286 return l
287
287
288 modified, added, removed = map(lambda x: filterfiles(x),
288 modified, added, removed = map(filterfiles, (modified, added, removed))
289 (modified, added, removed))
290
289
291 if not modified and not added and not removed:
290 if not modified and not added and not removed:
292 return
291 return
General Comments 0
You need to be logged in to leave comments. Login now