diff -r df9ccd39828c -r 00a881581400 mercurial/commands.py --- a/mercurial/commands.py Sun May 08 17:48:30 2011 +0200 +++ b/mercurial/commands.py Sun May 08 17:48:31 2011 +0200 @@ -2623,12 +2623,9 @@ repo.dirstate.setbranch(branch or 'default') files = {} - try: - patch.patch(tmpname, ui, strip=strip, cwd=repo.root, - files=files, eolmode=None) - finally: - files = patch.updatedir(ui, repo, files, - similarity=sim / 100.0) + patch.patch(ui, repo, tmpname, strip=strip, cwd=repo.root, + files=files, eolmode=None, similarity=sim / 100.0) + files = list(files) if opts.get('no_commit'): if message: msgs.append(message)