mercurial/commands.py
changeset 2907 b70740aefa4d
parent 2903 013921c753bd
child 2920 ef8ee4477019
child 2921 addb58e3b41c
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1681,7 +1681,7 @@ def import_(ui, repo, patch1, *patches, 
                 message = None
             ui.debug(_('message:\n%s\n') % message)
 
-            files = patch.patch(strip, tmpname, ui, cwd=repo.root)
+            files, fuzz = patch.patch(tmpname, ui, strip=strip, cwd=repo.root)
             removes = []
             if len(files) > 0:
                 cfiles = files.keys()