diff -r 967be4bb42a7 -r 28762bb767dc mercurial/patch.py --- a/mercurial/patch.py Fri May 06 18:45:12 2011 +0300 +++ b/mercurial/patch.py Fri May 06 18:45:12 2011 +0300 @@ -994,7 +994,7 @@ fp.seek(pos) return gitpatches -def iterhunks(ui, fp): +def iterhunks(fp): """Read a patch and yield the following events: - ("file", afile, bfile, firsthunk): select a new target file. - ("hunk", hunk): a new hunk is ready to be applied, follows a @@ -1114,7 +1114,7 @@ cwd = os.getcwd() opener = scmutil.opener(cwd) - for state, values in iterhunks(ui, fp): + for state, values in iterhunks(fp): if state == 'hunk': if not current_file: continue