# HG changeset patch # User Idan Kamara # Date 2011-05-06 15:45:12 # Node ID 28762bb767dc134f16fb0e8ca0dd8653e9cf7aea # Parent 967be4bb42a7756c8df6c2433411ec67bba58589 patch: remove unused ui arg to iterhunks diff --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -994,7 +994,7 @@ def scangitpatch(lr, firstline): 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 @@ def _applydiff(ui, fp, patcher, copyfn, 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