comparison mercurial/subrepo.py @ 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 965788d9ae09
comparison
equal deleted inserted replaced
23579:e1c39f207719 23580:e20f36ad092e
1653 for f in match.files(): 1653 for f in match.files():
1654 ui.write(self._gitcommand(cmd + [f])) 1654 ui.write(self._gitcommand(cmd + [f]))
1655 elif match(gitprefix): #Subrepo is matched 1655 elif match(gitprefix): #Subrepo is matched
1656 ui.write(self._gitcommand(cmd)) 1656 ui.write(self._gitcommand(cmd))
1657 1657
1658 def revert(self, ui, substate, *pats, **opts): 1658 def revert(self, substate, *pats, **opts):
1659 ui.status(_('reverting subrepo %s\n') % substate[0]) 1659 self.ui.status(_('reverting subrepo %s\n') % substate[0])
1660 if not opts.get('no_backup'): 1660 if not opts.get('no_backup'):
1661 ui.warn('%s: reverting %s subrepos without ' 1661 self.ui.warn('%s: reverting %s subrepos without '
1662 '--no-backup is unsupported\n' 1662 '--no-backup is unsupported\n'
1663 % (substate[0], substate[2])) 1663 % (substate[0], substate[2]))
1664 return [] 1664 return []
1665 1665
1666 self.get(substate, overwrite=True) 1666 self.get(substate, overwrite=True)
1667 return [] 1667 return []
1668 1668