subrepo: fix git subrepo ui argument
authorMatt Mackall <mpm@selenic.com>
Thu, 18 Dec 2014 12:07:03 -0600
changeset 23580 e20f36ad092e
parent 23579 e1c39f207719
child 23581 aed981c7bebf
subrepo: fix git subrepo ui argument
mercurial/subrepo.py
--- a/mercurial/subrepo.py	Sat Dec 13 19:44:55 2014 -0500
+++ b/mercurial/subrepo.py	Thu Dec 18 12:07:03 2014 -0600
@@ -1655,12 +1655,12 @@
         elif match(gitprefix): #Subrepo is matched
             ui.write(self._gitcommand(cmd))
 
-    def revert(self, ui, substate, *pats, **opts):
-        ui.status(_('reverting subrepo %s\n') % substate[0])
+    def revert(self, substate, *pats, **opts):
+        self.ui.status(_('reverting subrepo %s\n') % substate[0])
         if not opts.get('no_backup'):
-            ui.warn('%s: reverting %s subrepos without '
-                    '--no-backup is unsupported\n'
-                    % (substate[0], substate[2]))
+            self.ui.warn('%s: reverting %s subrepos without '
+                         '--no-backup is unsupported\n'
+                         % (substate[0], substate[2]))
             return []
 
         self.get(substate, overwrite=True)