hgext/patchbomb.py
changeset 7600 f7739cf3833c
parent 7547 4949729ee9ee
child 7615 ab39d1813e51
equal deleted inserted replaced
7599:7bf7c073375e 7600:f7739cf3833c
    99 def cdiffstat(ui, summary, patchlines):
    99 def cdiffstat(ui, summary, patchlines):
   100     s = patch.diffstat(patchlines)
   100     s = patch.diffstat(patchlines)
   101     if summary:
   101     if summary:
   102         ui.write(summary, '\n')
   102         ui.write(summary, '\n')
   103         ui.write(s, '\n')
   103         ui.write(s, '\n')
   104     ans = prompt(ui, _('Does the diffstat above look okay? '), 'y')
   104     ans = prompt(ui, _('does the diffstat above look okay? '), 'y')
   105     if not ans.lower().startswith('y'):
   105     if not ans.lower().startswith('y'):
   106         raise util.Abort(_('diffstat rejected'))
   106         raise util.Abort(_('diffstat rejected'))
   107     return s
   107     return s
   108 
   108 
   109 def makepatch(ui, repo, patch, opts, _charsets, idx, total, patchname=None):
   109 def makepatch(ui, repo, patch, opts, _charsets, idx, total, patchname=None):