##// END OF EJS Templates
test-patchbomb: fix non-existing --date parameter and filtering regexps.
Patrick Mezard -
r4595:f7f2bd7f default
parent child Browse files
Show More
@@ -7,13 +7,15 b' hg init'
7 7 echo a > a
8 8 hg commit -Ama -d '1 0'
9 9
10 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar tip | \
11 sed -e 's/\(Message-Id:.*@\).*/\1/'
10 hg email -n -f quux -t foo -c bar tip | \
11 sed -e 's/\(Message-Id:\).*@.*/\1/' | \
12 sed -e 's/\(Date:\).*/\1/'
12 13
13 14 echo b > b
14 15 hg commit -Amb -d '2 0'
15 16
16 hg email --date '1970-1-1 0:2' -n -f quux -t foo -c bar -s test 0:tip | \
17 sed -e 's/\(Message-Id:.*@\).*/\1/' | \
18 sed -e 's/\(In-Reply-To:.*@\).*/\1/'
19
17 # Pipe something to make raw_input() happy even under pysh+win32
18 echo test | hg email -n -f quux -t foo -c bar -s test 0:tip | \
19 sed -e 's/\(Message-Id:\).*@.*/\1/' | \
20 sed -e 's/\(In-Reply-To:\).*@.*/\1/' | \
21 sed -e 's/\(Date:\).*/\1/' No newline at end of file
@@ -1,62 +1,103 b''
1 1 adding a
2 hg email: option --date not recognized
3 hg email [OPTION]... [REV]...
2 Content-Type: text/plain; charset="us-ascii"
3 MIME-Version: 1.0
4 Content-Transfer-Encoding: 7bit
5 Subject: [PATCH] a
6 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
7 Message-Id:
8 Date:
9 From: quux
10 To: foo
11 Cc: bar
4 12
5 send changesets as a series of patch emails
6
7 The series starts with a "[PATCH 0 of N]" introduction, which
8 describes the series as a whole.
13 # HG changeset patch
14 # User test
15 # Date 1 0
16 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
17 # Parent 0000000000000000000000000000000000000000
18 a
9 19
10 Each patch email has a Subject line of "[PATCH M of N] ...", using
11 the first line of the changeset description as the subject text.
12 The message contains two or three body parts. First, the rest of
13 the changeset description. Next, (optionally) if the diffstat
14 program is installed, the result of running diffstat on the patch.
15 Finally, the patch itself, as generated by "hg export".
20 diff -r 000000000000 -r 8580ff50825a a
21 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
22 +++ b/a Thu Jan 01 00:00:01 1970 +0000
23 @@ -0,0 +1,1 @@
24 +a
16 25
17 options:
26 This patch series consists of 1 patches.
27
18 28
19 -a --attach send patches as inline attachments
20 --bcc email addresses of blind copy recipients
21 -c --cc email addresses of copy recipients
22 -d --diffstat add diffstat output to messages
23 -g --git use git extended diff format
24 -f --from email address of sender
25 --plain omit hg patch header
26 -n --test print messages that would be sent
27 -m --mbox write messages to mbox file instead of sending them
28 -s --subject subject of first message (intro or single patch)
29 -t --to email addresses of recipients
29 Displaying [PATCH] a ...
30 adding b
31 Content-Type: text/plain; charset="us-ascii"
32 MIME-Version: 1.0
33 Content-Transfer-Encoding: 7bit
34 Subject: [PATCH 0 of 2] test
35 Message-Id:
36 Date:
37 From: quux
38 To: foo
39 Cc: bar
40
41 test
30 42
31 use "hg -v help email" to show global options
32 adding b
33 hg email: option --date not recognized
34 hg email [OPTION]... [REV]...
43 Content-Type: text/plain; charset="us-ascii"
44 MIME-Version: 1.0
45 Content-Transfer-Encoding: 7bit
46 Subject: [PATCH 1 of 2] a
47 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
48 Message-Id:
49 In-Reply-To:
50 Date:
51 From: quux
52 To: foo
53 Cc: bar
35 54
36 send changesets as a series of patch emails
55 # HG changeset patch
56 # User test
57 # Date 1 0
58 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
59 # Parent 0000000000000000000000000000000000000000
60 a
37 61
38 The series starts with a "[PATCH 0 of N]" introduction, which
39 describes the series as a whole.
62 diff -r 000000000000 -r 8580ff50825a a
63 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
64 +++ b/a Thu Jan 01 00:00:01 1970 +0000
65 @@ -0,0 +1,1 @@
66 +a
40 67
41 Each patch email has a Subject line of "[PATCH M of N] ...", using
42 the first line of the changeset description as the subject text.
43 The message contains two or three body parts. First, the rest of
44 the changeset description. Next, (optionally) if the diffstat
45 program is installed, the result of running diffstat on the patch.
46 Finally, the patch itself, as generated by "hg export".
47
48 options:
68 Content-Type: text/plain; charset="us-ascii"
69 MIME-Version: 1.0
70 Content-Transfer-Encoding: 7bit
71 Subject: [PATCH 2 of 2] b
72 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
73 Message-Id:
74 In-Reply-To:
75 Date:
76 From: quux
77 To: foo
78 Cc: bar
49 79
50 -a --attach send patches as inline attachments
51 --bcc email addresses of blind copy recipients
52 -c --cc email addresses of copy recipients
53 -d --diffstat add diffstat output to messages
54 -g --git use git extended diff format
55 -f --from email address of sender
56 --plain omit hg patch header
57 -n --test print messages that would be sent
58 -m --mbox write messages to mbox file instead of sending them
59 -s --subject subject of first message (intro or single patch)
60 -t --to email addresses of recipients
80 # HG changeset patch
81 # User test
82 # Date 2 0
83 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
84 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
85 b
61 86
62 use "hg -v help email" to show global options
87 diff -r 8580ff50825a -r 97d72e5f12c7 b
88 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
89 +++ b/b Thu Jan 01 00:00:02 1970 +0000
90 @@ -0,0 +1,1 @@
91 +b
92
93 This patch series consists of 2 patches.
94
95
96 Write the introductory message for the patch series.
97
98 Finish with ^D or a dot on a line by itself.
99
100
101 Displaying [PATCH 0 of 2] test ...
102 Displaying [PATCH 1 of 2] a ...
103 Displaying [PATCH 2 of 2] b ...
General Comments 0
You need to be logged in to leave comments. Login now