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