##// END OF EJS Templates
patchbomb: add test that shows --to and --cc override matching config item...
Augie Fackler -
r34302:3704d3f2 default
parent child Browse files
Show More
@@ -70,6 +70,45 b' Mercurial-patchbomb/.* -> Mercurial-patc'
70 +a
70 +a
71
71
72
72
73 If --to is specified on the command line, it should override any
74 email.to config setting. Same for --cc:
75
76 $ hg email --date '1970-1-1 0:1' -n -f quux --to foo --cc bar -r tip \
77 > --config email.to=bob@example.com --config email.cc=alice@example.com
78 this patch series consists of 1 patches.
79
80
81 displaying [PATCH] a ...
82 Content-Type: text/plain; charset="us-ascii"
83 MIME-Version: 1.0
84 Content-Transfer-Encoding: 7bit
85 Subject: [PATCH] a
86 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
87 X-Mercurial-Series-Index: 1
88 X-Mercurial-Series-Total: 1
89 Message-Id: <*@*> (glob)
90 X-Mercurial-Series-Id: <*@*> (glob)
91 User-Agent: Mercurial-patchbomb/* (glob)
92 Date: Thu, 01 Jan 1970 00:01:00 +0000
93 From: quux
94 To: foo
95 Cc: bar
96
97 # HG changeset patch
98 # User test
99 # Date 1 0
100 # Thu Jan 01 00:00:01 1970 +0000
101 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
102 # Parent 0000000000000000000000000000000000000000
103 a
104
105 diff -r 000000000000 -r 8580ff50825a a
106 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
107 +++ b/a Thu Jan 01 00:00:01 1970 +0000
108 @@ -0,0 +1,1 @@
109 +a
110
111
73 $ hg --config ui.interactive=1 email --confirm -n -f quux -t foo -c bar -r tip<<EOF
112 $ hg --config ui.interactive=1 email --confirm -n -f quux -t foo -c bar -r tip<<EOF
74 > n
113 > n
75 > EOF
114 > EOF
General Comments 0
You need to be logged in to leave comments. Login now