Mercurial > public > mercurial-scm > hg-stable
diff mercurial/patch.py @ 4200:b5d1eaade333
Merge a bunch of matcher and locate fixes.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sat, 10 Mar 2007 23:21:33 -0300 |
parents | ef7c39ae5d4c da0588996ecc |
children | 7e95381a9f1e |
line wrap: on
line diff
--- a/mercurial/patch.py Sat Mar 10 17:45:32 2007 -0800 +++ b/mercurial/patch.py Sat Mar 10 23:21:33 2007 -0300 @@ -464,17 +464,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