mercurial/commands.py
changeset 1626 f2b1df3dbcbb
parent 1625 e1bcf7fa983f
child 1633 94c179a92f4a
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -266,7 +266,7 @@ def dodiff(fp, ui, repo, node1, node2, f
         changes = repo.changes(node1, node2, files, match=match)
     modified, added, removed, deleted, unknown = changes
     if files:
-        modified, added, removed = map(lambda x: filterfiles(x, files),
+        modified, added, removed = map(lambda x: filterfiles(files, x),
                                        (modified, added, removed))
 
     if not modified and not added and not removed: