##// END OF EJS Templates
patchbomb: show prompt and selection in non-interactive mode...
Christian Ebert -
r12197:54069306 default
parent child Browse files
Show More
@@ -81,9 +81,7 b' from mercurial.i18n import _'
81 from mercurial.node import bin
81 from mercurial.node import bin
82
82
83 def prompt(ui, prompt, default=None, rest=':'):
83 def prompt(ui, prompt, default=None, rest=':'):
84 if not ui.interactive():
84 if not ui.interactive() and default is None:
85 if default is not None:
86 return default
87 raise util.Abort(_("%s Please enter a valid value" % (prompt + rest)))
85 raise util.Abort(_("%s Please enter a valid value" % (prompt + rest)))
88 if default:
86 if default:
89 prompt += ' [%s]' % default
87 prompt += ' [%s]' % default
@@ -1776,6 +1776,7 b' test multi-byte domain parsing:'
1776 $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "bar@${UUML}nicode.com" -s test -r 0
1776 $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "bar@${UUML}nicode.com" -s test -r 0
1777 This patch series consists of 1 patches.
1777 This patch series consists of 1 patches.
1778
1778
1779 Cc:
1779
1780
1780 Writing [PATCH] test ...
1781 Writing [PATCH] test ...
1781
1782
@@ -1820,11 +1821,13 b' test outgoing:'
1820 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t
1821 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t
1821 comparing with ../t
1822 comparing with ../t
1822 searching for changes
1823 searching for changes
1824 From [test]: test
1823 This patch series consists of 8 patches.
1825 This patch series consists of 8 patches.
1824
1826
1825
1827
1826 Write the introductory message for the patch series.
1828 Write the introductory message for the patch series.
1827
1829
1830 Cc:
1828
1831
1829 Displaying [PATCH 0 of 8] test ...
1832 Displaying [PATCH 0 of 8] test ...
1830 Content-Type: text/plain; charset="us-ascii"
1833 Content-Type: text/plain; charset="us-ascii"
@@ -2092,8 +2095,10 b' dest#branch URIs:'
2092 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t#test
2095 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t#test
2093 comparing with ../t
2096 comparing with ../t
2094 searching for changes
2097 searching for changes
2098 From [test]: test
2095 This patch series consists of 1 patches.
2099 This patch series consists of 1 patches.
2096
2100
2101 Cc:
2097
2102
2098 Displaying [PATCH] test ...
2103 Displaying [PATCH] test ...
2099 Content-Type: text/plain; charset="us-ascii"
2104 Content-Type: text/plain; charset="us-ascii"
General Comments 0
You need to be logged in to leave comments. Login now