Mercurial > public > mercurial-scm > hg
comparison hgext/patchbomb.py @ 7600:f7739cf3833c
lowercase prompts
The prompts are interactive and not meant for scripts.
author | Martin Geisler <mg@daimi.au.dk> |
---|---|
date | Sat, 03 Jan 2009 17:15:21 +0100 |
parents | 4949729ee9ee |
children | ab39d1813e51 |
comparison
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): |