equal
deleted
inserted
replaced
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): |