Show More
@@ -57,13 +57,13 b' cmdtable = {}' | |||||
57 | command = cmdutil.command(cmdtable) |
|
57 | command = cmdutil.command(cmdtable) | |
58 |
|
58 | |||
59 | def prompt(ui, prompt, default=None, rest=':'): |
|
59 | def prompt(ui, prompt, default=None, rest=':'): | |
60 | if not ui.interactive(): |
|
|||
61 | return default |
|
|||
62 | if default: |
|
60 | if default: | |
63 | prompt += ' [%s]' % default |
|
61 | prompt += ' [%s]' % default | |
64 | prompt += rest |
|
62 | prompt += rest | |
65 | while True: |
|
63 | while True: | |
66 | result = ui.prompt(prompt, default=default) |
|
64 | result = ui.prompt(prompt, default=default) | |
|
65 | if not ui.interactive(): | |||
|
66 | return result | |||
67 | if result is not None: |
|
67 | if result is not None: | |
68 | return result |
|
68 | return result | |
69 | elif default is not None: |
|
69 | elif default is not None: |
@@ -1474,6 +1474,7 b' no intro message in non-interactive mode' | |||||
1474 | > -r 0:1 | fixheaders |
|
1474 | > -r 0:1 | fixheaders | |
1475 | This patch series consists of 2 patches. |
|
1475 | This patch series consists of 2 patches. | |
1476 |
|
1476 | |||
|
1477 | Subject: [PATCH 0 of 2] | |||
1477 |
|
1478 | |||
1478 | Displaying [PATCH 1 of 2] a ... |
|
1479 | Displaying [PATCH 1 of 2] a ... | |
1479 | Content-Type: text/plain; charset="us-ascii" |
|
1480 | Content-Type: text/plain; charset="us-ascii" | |
@@ -1883,6 +1884,7 b' test multi-byte domain parsing:' | |||||
1883 | $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "bar@${UUML}nicode.com" -s test -r 0 |
|
1884 | $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "bar@${UUML}nicode.com" -s test -r 0 | |
1884 | This patch series consists of 1 patches. |
|
1885 | This patch series consists of 1 patches. | |
1885 |
|
1886 | |||
|
1887 | Cc: | |||
1886 |
|
1888 | |||
1887 | Writing [PATCH] test ... |
|
1889 | Writing [PATCH] test ... | |
1888 |
|
1890 | |||
@@ -1927,11 +1929,13 b' test outgoing:' | |||||
1927 | $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t |
|
1929 | $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t | |
1928 | comparing with ../t |
|
1930 | comparing with ../t | |
1929 | searching for changes |
|
1931 | searching for changes | |
|
1932 | From [test]: test | |||
1930 | This patch series consists of 8 patches. |
|
1933 | This patch series consists of 8 patches. | |
1931 |
|
1934 | |||
1932 |
|
1935 | |||
1933 | Write the introductory message for the patch series. |
|
1936 | Write the introductory message for the patch series. | |
1934 |
|
1937 | |||
|
1938 | Cc: | |||
1935 |
|
1939 | |||
1936 | Displaying [PATCH 0 of 8] test ... |
|
1940 | Displaying [PATCH 0 of 8] test ... | |
1937 | Content-Type: text/plain; charset="us-ascii" |
|
1941 | Content-Type: text/plain; charset="us-ascii" | |
@@ -2199,8 +2203,10 b' dest#branch URIs:' | |||||
2199 | $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t#test |
|
2203 | $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t#test | |
2200 | comparing with ../t |
|
2204 | comparing with ../t | |
2201 | searching for changes |
|
2205 | searching for changes | |
|
2206 | From [test]: test | |||
2202 | This patch series consists of 1 patches. |
|
2207 | This patch series consists of 1 patches. | |
2203 |
|
2208 | |||
|
2209 | Cc: | |||
2204 |
|
2210 | |||
2205 | Displaying [PATCH] test ... |
|
2211 | Displaying [PATCH] test ... | |
2206 | Content-Type: text/plain; charset="us-ascii" |
|
2212 | Content-Type: text/plain; charset="us-ascii" |
General Comments 0
You need to be logged in to leave comments.
Login now