stash: color the patch prompt line
This commit is contained in:
parent
6d547299cd
commit
a215aac2f6
2
jsvn
2
jsvn
@ -1273,7 +1273,9 @@ def get_svn_contents_to_stash(targets, svn, out, keep, patch):
|
|||||||
answer = ''
|
answer = ''
|
||||||
answers = ('y', 'n', 'yf', 'nf', 'ya', 'na', 'q', '?')
|
answers = ('y', 'n', 'yf', 'nf', 'ya', 'na', 'q', '?')
|
||||||
while answer not in answers:
|
while answer not in answers:
|
||||||
|
ansi_color(out, 'magenta', bold=True)
|
||||||
out.write('Stash this hunk (%s)? ' % ','.join(answers))
|
out.write('Stash this hunk (%s)? ' % ','.join(answers))
|
||||||
|
ansi_reset(out)
|
||||||
answer = sys.stdin.readline().rstrip().lower()
|
answer = sys.stdin.readline().rstrip().lower()
|
||||||
if answer == '?':
|
if answer == '?':
|
||||||
out.write('''y: yes, stash this hunk
|
out.write('''y: yes, stash this hunk
|
||||||
|
Loading…
x
Reference in New Issue
Block a user