Show More
@@ -1,19 +1,21 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | echo "[extensions]" >> $HGRCPATH |
|
3 | echo "[extensions]" >> $HGRCPATH | |
4 | echo "patchbomb=" >> $HGRCPATH |
|
4 | echo "patchbomb=" >> $HGRCPATH | |
5 |
|
5 | |||
6 | hg init |
|
6 | hg init | |
7 | echo a > a |
|
7 | echo a > a | |
8 | hg commit -Ama -d '1 0' |
|
8 | hg commit -Ama -d '1 0' | |
9 |
|
9 | |||
10 |
hg email - |
|
10 | hg email -n -f quux -t foo -c bar tip | \ | |
11 |
sed -e 's/\(Message-Id:.*@ |
|
11 | sed -e 's/\(Message-Id:\).*@.*/\1/' | \ | |
|
12 | sed -e 's/\(Date:\).*/\1/' | |||
12 |
|
13 | |||
13 | echo b > b |
|
14 | echo b > b | |
14 | hg commit -Amb -d '2 0' |
|
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 | # Pipe something to make raw_input() happy even under pysh+win32 | |
17 | sed -e 's/\(Message-Id:.*@\).*/\1/' | \ |
|
18 | echo test | hg email -n -f quux -t foo -c bar -s test 0:tip | \ | |
18 |
sed -e 's/\( |
|
19 | sed -e 's/\(Message-Id:\).*@.*/\1/' | \ | |
19 |
|
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 | adding a |
|
1 | adding a | |
2 | hg email: option --date not recognized |
|
2 | Content-Type: text/plain; charset="us-ascii" | |
3 | hg email [OPTION]... [REV]... |
|
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 |
|
13 | # HG changeset patch | |
6 |
|
14 | # User test | ||
7 | The series starts with a "[PATCH 0 of N]" introduction, which |
|
15 | # Date 1 0 | |
8 | describes the series as a whole. |
|
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 |
|
20 | diff -r 000000000000 -r 8580ff50825a a | |
11 | the first line of the changeset description as the subject text. |
|
21 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
12 | The message contains two or three body parts. First, the rest of |
|
22 | +++ b/a Thu Jan 01 00:00:01 1970 +0000 | |
13 | the changeset description. Next, (optionally) if the diffstat |
|
23 | @@ -0,0 +1,1 @@ | |
14 | program is installed, the result of running diffstat on the patch. |
|
24 | +a | |
15 | Finally, the patch itself, as generated by "hg export". |
|
|||
16 |
|
25 | |||
17 | options: |
|
26 | This patch series consists of 1 patches. | |
|
27 | ||||
18 |
|
28 | |||
19 | -a --attach send patches as inline attachments |
|
29 | Displaying [PATCH] a ... | |
20 | --bcc email addresses of blind copy recipients |
|
30 | adding b | |
21 | -c --cc email addresses of copy recipients |
|
31 | Content-Type: text/plain; charset="us-ascii" | |
22 | -d --diffstat add diffstat output to messages |
|
32 | MIME-Version: 1.0 | |
23 | -g --git use git extended diff format |
|
33 | Content-Transfer-Encoding: 7bit | |
24 | -f --from email address of sender |
|
34 | Subject: [PATCH 0 of 2] test | |
25 | --plain omit hg patch header |
|
35 | Message-Id: | |
26 | -n --test print messages that would be sent |
|
36 | Date: | |
27 | -m --mbox write messages to mbox file instead of sending them |
|
37 | From: quux | |
28 | -s --subject subject of first message (intro or single patch) |
|
38 | To: foo | |
29 | -t --to email addresses of recipients |
|
39 | Cc: bar | |
|
40 | ||||
|
41 | test | |||
30 |
|
42 | |||
31 | use "hg -v help email" to show global options |
|
43 | Content-Type: text/plain; charset="us-ascii" | |
32 | adding b |
|
44 | MIME-Version: 1.0 | |
33 | hg email: option --date not recognized |
|
45 | Content-Transfer-Encoding: 7bit | |
34 | hg email [OPTION]... [REV]... |
|
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 |
|
62 | diff -r 000000000000 -r 8580ff50825a a | |
39 | describes the series as a whole. |
|
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 |
|
68 | Content-Type: text/plain; charset="us-ascii" | |
42 | the first line of the changeset description as the subject text. |
|
69 | MIME-Version: 1.0 | |
43 | The message contains two or three body parts. First, the rest of |
|
70 | Content-Transfer-Encoding: 7bit | |
44 | the changeset description. Next, (optionally) if the diffstat |
|
71 | Subject: [PATCH 2 of 2] b | |
45 | program is installed, the result of running diffstat on the patch. |
|
72 | X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9 | |
46 | Finally, the patch itself, as generated by "hg export". |
|
73 | Message-Id: | |
47 |
|
74 | In-Reply-To: | ||
48 | options: |
|
75 | Date: | |
|
76 | From: quux | |||
|
77 | To: foo | |||
|
78 | Cc: bar | |||
49 |
|
79 | |||
50 | -a --attach send patches as inline attachments |
|
80 | # HG changeset patch | |
51 | --bcc email addresses of blind copy recipients |
|
81 | # User test | |
52 | -c --cc email addresses of copy recipients |
|
82 | # Date 2 0 | |
53 | -d --diffstat add diffstat output to messages |
|
83 | # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9 | |
54 | -g --git use git extended diff format |
|
84 | # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab | |
55 | -f --from email address of sender |
|
85 | b | |
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 |
|
|||
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