diff -r 50e3fb2ab9fa -r df9ccd39828c mercurial/commands.py --- a/mercurial/commands.py Sun May 08 17:48:29 2011 +0200 +++ b/mercurial/commands.py Sun May 08 17:48:30 2011 +0200 @@ -2627,8 +2627,8 @@ patch.patch(tmpname, ui, strip=strip, cwd=repo.root, files=files, eolmode=None) finally: - files = cmdutil.updatedir(ui, repo, files, - similarity=sim / 100.0) + files = patch.updatedir(ui, repo, files, + similarity=sim / 100.0) if opts.get('no_commit'): if message: msgs.append(message)