comparison tests/test-patchbomb.t @ 22589:9ab18a912c44

ui: show prompt choice if input is not a tty but is forced to be interactive The tests often set ui.interactive to control normally interactive prompts from stdin. That gave an output where it was non-obvious what prompts got which which response, and the output lacked the newline users would see after input. Instead, if the input not is a tty, write the selection and a newline.
author Mads Kiilerich <madski@unity3d.com>
date Wed, 01 Oct 2014 01:04:18 +0200
parents f8fc5df6a8cf
children c63a09b6b337
comparison
equal deleted inserted replaced
22588:cd1b43226b34 22589:9ab18a912c44
80 Cc: bar 80 Cc: bar
81 Subject: [PATCH] a 81 Subject: [PATCH] a
82 a | 1 + 82 a | 1 +
83 1 files changed, 1 insertions(+), 0 deletions(-) 83 1 files changed, 1 insertions(+), 0 deletions(-)
84 84
85 are you sure you want to send (yn)? abort: patchbomb canceled 85 are you sure you want to send (yn)? n
86 abort: patchbomb canceled
86 [255] 87 [255]
87 88
88 $ echo b > b 89 $ echo b > b
89 $ hg commit -Amb -d '2 0' 90 $ hg commit -Amb -d '2 0'
90 adding b 91 adding b