##// END OF EJS Templates
remove obsolete code from patch.diff...
Alexis S. L. Carvalho -
r4184:da058899 default
parent child Browse files
Show More
@@ -466,17 +466,6 b' def diff(repo, node1=None, node2=None, f'
466 466 if not changes:
467 467 changes = repo.status(node1, node2, files, match=match)[:5]
468 468 modified, added, removed, deleted, unknown = changes
469 if files:
470 def filterfiles(filters):
471 l = [x for x in filters if x in files]
472
473 for t in files:
474 if not t.endswith("/"):
475 t += "/"
476 l += [x for x in filters if x.startswith(t)]
477 return l
478
479 modified, added, removed = map(filterfiles, (modified, added, removed))
480 469
481 470 if not modified and not added and not removed:
482 471 return
General Comments 0
You need to be logged in to leave comments. Login now