--- a/mercurial/patch.py Tue May 17 23:46:38 2011 +0200 +++ b/mercurial/patch.py Wed May 18 09:05:18 2011 +0200 @@ -1165,7 +1165,6 @@ rejects = 0 err = 0 current_file = None - cwd = os.getcwd() backend = fsbackend(ui, os.getcwd()) for state, values in iterhunks(fp):