Mercurial > hg
changeset 23580:e20f36ad092e
subrepo: fix git subrepo ui argument
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 18 Dec 2014 12:07:03 -0600 |
parents | e1c39f207719 |
children | aed981c7bebf |
files | mercurial/subrepo.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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)