changeset 14240:28762bb767dc

patch: remove unused ui arg to iterhunks
author Idan Kamara <idankk86@gmail.com>
date Fri, 06 May 2011 18:45:12 +0300
parents 967be4bb42a7
children 45f7aa35f2fd
files mercurial/patch.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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