stash: color the patch prompt line

This commit is contained in:
Josh Holtrop 2013-03-11 21:31:05 -04:00
parent 6d547299cd
commit a215aac2f6

2
jsvn
View File

@ -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