Mercurial > hg
changeset 4184:da0588996ecc
remove obsolete code from patch.diff
repo.status already does this filtering. If the caller supplies a set of
changes, it's his responsibility to filter out what he doesn't want.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sat, 10 Mar 2007 23:00:43 -0300 |
parents | 6f9474044736 |
children | 51ee2868a571 |
files | mercurial/patch.py |
diffstat | 1 files changed, 0 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/patch.py Sat Mar 10 23:00:42 2007 -0300 +++ b/mercurial/patch.py Sat Mar 10 23:00:43 2007 -0300 @@ -466,17 +466,6 @@ if not changes: changes = repo.status(node1, node2, files, match=match)[:5] modified, added, removed, deleted, unknown = changes - if files: - def filterfiles(filters): - l = [x for x in filters if x in files] - - for t in files: - if not t.endswith("/"): - t += "/" - l += [x for x in filters if x.startswith(t)] - return l - - modified, added, removed = map(filterfiles, (modified, added, removed)) if not modified and not added and not removed: return