--- 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)