Show More
@@ -1,109 +1,19 b'' | |||||
1 | adding a |
|
1 | #!/bin/sh | |
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: <8580ff50825a50c8f716.60@ |
|
|||
8 | Date: Thu, 01 Jan 1970 00:01:00 +0000 |
|
|||
9 | From: quux |
|
|||
10 | To: foo |
|
|||
11 | Cc: bar |
|
|||
12 |
|
||||
13 | # HG changeset patch |
|
|||
14 | # User test |
|
|||
15 | # Date 1 0 |
|
|||
16 | # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab |
|
|||
17 | # Parent 0000000000000000000000000000000000000000 |
|
|||
18 | a |
|
|||
19 |
|
||||
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 |
|
|||
25 |
|
2 | |||
26 | This patch series consists of 1 patches. |
|
3 | echo "[extensions]" >> $HGRCPATH | |
27 |
|
4 | echo "patchbomb=" >> $HGRCPATH | ||
28 |
|
5 | |||
29 | Displaying [PATCH] a ... |
|
6 | hg init | |
30 | adding b |
|
7 | echo a > a | |
31 | Content-Type: text/plain; charset="us-ascii" |
|
8 | hg commit -Ama -d '1 0' | |
32 | MIME-Version: 1.0 |
|
|||
33 | Content-Transfer-Encoding: 7bit |
|
|||
34 | Subject: [PATCH 0 of 2] test |
|
|||
35 | Message-Id: <patchbomb.120@ |
|
|||
36 | Date: Thu, 01 Jan 1970 00:02:00 +0000 |
|
|||
37 | From: quux |
|
|||
38 | To: foo |
|
|||
39 | Cc: bar |
|
|||
40 |
|
||||
41 |
|
||||
42 | Content-Type: text/plain; charset="us-ascii" |
|
|||
43 | MIME-Version: 1.0 |
|
|||
44 | Content-Transfer-Encoding: 7bit |
|
|||
45 | Subject: [PATCH 1 of 2] a |
|
|||
46 | X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab |
|
|||
47 | Message-Id: <8580ff50825a50c8f716.121@ |
|
|||
48 | In-Reply-To: <patchbomb.120@ |
|
|||
49 | Date: Thu, 01 Jan 1970 00:02:01 +0000 |
|
|||
50 | From: quux |
|
|||
51 | To: foo |
|
|||
52 | Cc: bar |
|
|||
53 |
|
9 | |||
54 | # HG changeset patch |
|
10 | hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar tip | \ | |
55 | # User test |
|
11 | sed -e 's/\(Message-Id:.*@\).*/\1/' | |
56 | # Date 1 0 |
|
|||
57 | # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab |
|
|||
58 | # Parent 0000000000000000000000000000000000000000 |
|
|||
59 | a |
|
|||
60 |
|
||||
61 | diff -r 000000000000 -r 8580ff50825a a |
|
|||
62 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
|||
63 | +++ b/a Thu Jan 01 00:00:01 1970 +0000 |
|
|||
64 | @@ -0,0 +1,1 @@ |
|
|||
65 | +a |
|
|||
66 |
|
||||
67 | Content-Type: text/plain; charset="us-ascii" |
|
|||
68 | MIME-Version: 1.0 |
|
|||
69 | Content-Transfer-Encoding: 7bit |
|
|||
70 | Subject: [PATCH 2 of 2] b |
|
|||
71 | X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9 |
|
|||
72 | Message-Id: <97d72e5f12c7e84f8506.122@ |
|
|||
73 | In-Reply-To: <patchbomb.120@ |
|
|||
74 | Date: Thu, 01 Jan 1970 00:02:02 +0000 |
|
|||
75 | From: quux |
|
|||
76 | To: foo |
|
|||
77 | Cc: bar |
|
|||
78 |
|
12 | |||
79 | # HG changeset patch |
|
13 | echo b > b | |
80 | # User test |
|
14 | hg commit -Amb -d '2 0' | |
81 | # Date 2 0 |
|
|||
82 | # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9 |
|
|||
83 | # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab |
|
|||
84 | b |
|
|||
85 |
|
||||
86 | diff -r 8580ff50825a -r 97d72e5f12c7 b |
|
|||
87 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
|||
88 | +++ b/b Thu Jan 01 00:00:02 1970 +0000 |
|
|||
89 | @@ -0,0 +1,1 @@ |
|
|||
90 | +b |
|
|||
91 |
|
||||
92 | This patch series consists of 2 patches. |
|
|||
93 |
|
||||
94 |
|
15 | |||
95 | Write the introductory message for the patch series. |
|
16 | hg email --date '1970-1-1 0:2' -n -f quux -t foo -c bar -s test 0:tip | \ | |
96 |
|
17 | sed -e 's/\(Message-Id:.*@\|In-Reply-To:.*@\).*/\1/' | ||
97 |
|
||||
98 | Displaying [PATCH 0 of 2] test ... |
|
|||
99 | Displaying [PATCH 1 of 2] a ... |
|
|||
100 | Displaying [PATCH 2 of 2] b ... |
|
|||
101 | This patch series consists of 2 patches. |
|
|||
102 |
|
18 | |||
103 |
|
19 | hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip | ||
104 | Write the introductory message for the patch series. |
|
|||
105 |
|
||||
106 |
|
||||
107 | Writing [PATCH 0 of 2] test ... |
|
|||
108 | Writing [PATCH 1 of 2] a ... |
|
|||
109 | Writing [PATCH 2 of 2] b ... |
|
@@ -1,143 +1,109 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]... [DEST]... |
|
3 | MIME-Version: 1.0 | |
4 |
|
4 | Content-Transfer-Encoding: 7bit | ||
5 | send changesets by email |
|
5 | Subject: [PATCH] a | |
6 |
|
6 | X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab | ||
7 | By default, diffs are sent in the format generated by hg export, |
|
7 | Message-Id: <8580ff50825a50c8f716.60@ | |
8 | one per message. The series starts with a "[PATCH 0 of N]" |
|
8 | Date: Thu, 01 Jan 1970 00:01:00 +0000 | |
9 | introduction, which describes the series as a whole. |
|
9 | From: quux | |
|
10 | To: foo | |||
|
11 | Cc: bar | |||
10 |
|
12 | |||
11 | Each patch email has a Subject line of "[PATCH M of N] ...", using |
|
13 | # HG changeset patch | |
12 | the first line of the changeset description as the subject text. |
|
14 | # User test | |
13 | The message contains two or three body parts. First, the rest of |
|
15 | # Date 1 0 | |
14 | the changeset description. Next, (optionally) if the diffstat |
|
16 | # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab | |
15 | program is installed, the result of running diffstat on the patch. |
|
17 | # Parent 0000000000000000000000000000000000000000 | |
16 | Finally, the patch itself, as generated by "hg export". |
|
18 | a | |
17 |
|
||||
18 | With --outgoing, emails will be generated for patches not |
|
|||
19 | found in the destination repository (or only those which are |
|
|||
20 | ancestors of the specified revisions if any are provided) |
|
|||
21 |
|
||||
22 | With --bundle, changesets are selected as for --outgoing, |
|
|||
23 | but a single email containing a binary Mercurial bundle as an |
|
|||
24 | attachment will be sent. |
|
|||
25 |
|
||||
26 | Examples: |
|
|||
27 |
|
||||
28 | hg email -r 3000 # send patch 3000 only |
|
|||
29 | hg email -r 3000 -r 3001 # send patches 3000 and 3001 |
|
|||
30 | hg email -r 3000:3005 # send patches 3000 through 3005 |
|
|||
31 | hg email 3000 # send patch 3000 (deprecated) |
|
|||
32 |
|
19 | |||
33 | hg email -o # send all patches not in default |
|
20 | diff -r 000000000000 -r 8580ff50825a a | |
34 | hg email -o DEST # send all patches not in DEST |
|
21 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
35 | hg email -o -r 3000 # send all ancestors of 3000 not in default |
|
22 | +++ b/a Thu Jan 01 00:00:01 1970 +0000 | |
36 | hg email -o -r 3000 DEST # send all ancestors of 3000 not in DEST |
|
23 | @@ -0,0 +1,1 @@ | |
|
24 | +a | |||
37 |
|
25 | |||
38 | hg email -b # send bundle of all patches not in default |
|
26 | This patch series consists of 1 patches. | |
39 | hg email -b DEST # send bundle of all patches not in DEST |
|
|||
40 | hg email -b -r 3000 # bundle of all ancestors of 3000 not in default |
|
|||
41 | hg email -b -r 3000 DEST # bundle of all ancestors of 3000 not in DEST |
|
|||
42 |
|
27 | |||
43 | Before using this command, you will need to enable email in your hgrc. |
|
|||
44 | See the [email] section in hgrc(5) for details. |
|
|||
45 |
|
||||
46 | options: |
|
|||
47 |
|
28 | |||
48 | -a --attach send patches as inline attachments |
|
29 | Displaying [PATCH] a ... | |
49 | --bcc email addresses of blind copy recipients |
|
30 | adding b | |
50 | -c --cc email addresses of copy recipients |
|
31 | Content-Type: text/plain; charset="us-ascii" | |
51 | -d --diffstat add diffstat output to messages |
|
32 | MIME-Version: 1.0 | |
52 | -g --git use git extended diff format |
|
33 | Content-Transfer-Encoding: 7bit | |
53 | -f --from email address of sender |
|
34 | Subject: [PATCH 0 of 2] test | |
54 | --plain omit hg patch header |
|
35 | Message-Id: <patchbomb.120@ | |
55 | -n --test print messages that would be sent |
|
36 | Date: Thu, 01 Jan 1970 00:02:00 +0000 | |
56 | -m --mbox write messages to mbox file instead of sending them |
|
37 | From: quux | |
57 | -o --outgoing send changes not found in the target repository |
|
38 | To: foo | |
58 | -b --bundle send changes not in target as a binary bundle |
|
39 | Cc: bar | |
59 | -r --rev a revision to send |
|
40 | ||
60 | -s --subject subject of first message (intro or single patch) |
|
|||
61 | -t --to email addresses of recipients |
|
|||
62 | --force run even when remote repository is unrelated (with -b) |
|
|||
63 | --base a base changeset to specify instead of a destination (with -b) |
|
|||
64 | -e --ssh specify ssh command to use |
|
|||
65 | --remotecmd specify hg command to run on the remote side |
|
|||
66 |
|
41 | |||
67 | use "hg -v help email" to show global options |
|
42 | Content-Type: text/plain; charset="us-ascii" | |
68 | adding b |
|
43 | MIME-Version: 1.0 | |
69 | hg email: option --date not recognized |
|
44 | Content-Transfer-Encoding: 7bit | |
70 | hg email [OPTION]... [DEST]... |
|
45 | Subject: [PATCH 1 of 2] a | |
71 |
|
46 | X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab | ||
72 | send changesets by email |
|
47 | Message-Id: <8580ff50825a50c8f716.121@ | |
73 |
|
48 | In-Reply-To: <patchbomb.120@ | ||
74 | By default, diffs are sent in the format generated by hg export, |
|
49 | Date: Thu, 01 Jan 1970 00:02:01 +0000 | |
75 | one per message. The series starts with a "[PATCH 0 of N]" |
|
50 | From: quux | |
76 | introduction, which describes the series as a whole. |
|
51 | To: foo | |
|
52 | Cc: bar | |||
77 |
|
53 | |||
78 | Each patch email has a Subject line of "[PATCH M of N] ...", using |
|
54 | # HG changeset patch | |
79 | the first line of the changeset description as the subject text. |
|
55 | # User test | |
80 | The message contains two or three body parts. First, the rest of |
|
56 | # Date 1 0 | |
81 | the changeset description. Next, (optionally) if the diffstat |
|
57 | # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab | |
82 | program is installed, the result of running diffstat on the patch. |
|
58 | # Parent 0000000000000000000000000000000000000000 | |
83 | Finally, the patch itself, as generated by "hg export". |
|
59 | a | |
84 |
|
||||
85 | With --outgoing, emails will be generated for patches not |
|
|||
86 | found in the destination repository (or only those which are |
|
|||
87 | ancestors of the specified revisions if any are provided) |
|
|||
88 |
|
60 | |||
89 | With --bundle, changesets are selected as for --outgoing, |
|
61 | diff -r 000000000000 -r 8580ff50825a a | |
90 | but a single email containing a binary Mercurial bundle as an |
|
62 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
91 | attachment will be sent. |
|
63 | +++ b/a Thu Jan 01 00:00:01 1970 +0000 | |
92 |
|
64 | @@ -0,0 +1,1 @@ | ||
93 | Examples: |
|
65 | +a | |
94 |
|
||||
95 | hg email -r 3000 # send patch 3000 only |
|
|||
96 | hg email -r 3000 -r 3001 # send patches 3000 and 3001 |
|
|||
97 | hg email -r 3000:3005 # send patches 3000 through 3005 |
|
|||
98 | hg email 3000 # send patch 3000 (deprecated) |
|
|||
99 |
|
66 | |||
100 | hg email -o # send all patches not in default |
|
67 | Content-Type: text/plain; charset="us-ascii" | |
101 | hg email -o DEST # send all patches not in DEST |
|
68 | MIME-Version: 1.0 | |
102 | hg email -o -r 3000 # send all ancestors of 3000 not in default |
|
69 | Content-Transfer-Encoding: 7bit | |
103 | hg email -o -r 3000 DEST # send all ancestors of 3000 not in DEST |
|
70 | Subject: [PATCH 2 of 2] b | |
104 |
|
71 | X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9 | ||
105 | hg email -b # send bundle of all patches not in default |
|
72 | Message-Id: <97d72e5f12c7e84f8506.122@ | |
106 | hg email -b DEST # send bundle of all patches not in DEST |
|
73 | In-Reply-To: <patchbomb.120@ | |
107 | hg email -b -r 3000 # bundle of all ancestors of 3000 not in default |
|
74 | Date: Thu, 01 Jan 1970 00:02:02 +0000 | |
108 | hg email -b -r 3000 DEST # bundle of all ancestors of 3000 not in DEST |
|
75 | From: quux | |
109 |
|
76 | To: foo | ||
110 | Before using this command, you will need to enable email in your hgrc. |
|
77 | Cc: bar | |
111 | See the [email] section in hgrc(5) for details. |
|
|||
112 |
|
||||
113 | options: |
|
|||
114 |
|
78 | |||
115 | -a --attach send patches as inline attachments |
|
79 | # HG changeset patch | |
116 | --bcc email addresses of blind copy recipients |
|
80 | # User test | |
117 | -c --cc email addresses of copy recipients |
|
81 | # Date 2 0 | |
118 | -d --diffstat add diffstat output to messages |
|
82 | # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9 | |
119 | -g --git use git extended diff format |
|
83 | # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab | |
120 | -f --from email address of sender |
|
84 | b | |
121 | --plain omit hg patch header |
|
|||
122 | -n --test print messages that would be sent |
|
|||
123 | -m --mbox write messages to mbox file instead of sending them |
|
|||
124 | -o --outgoing send changes not found in the target repository |
|
|||
125 | -b --bundle send changes not in target as a binary bundle |
|
|||
126 | -r --rev a revision to send |
|
|||
127 | -s --subject subject of first message (intro or single patch) |
|
|||
128 | -t --to email addresses of recipients |
|
|||
129 | --force run even when remote repository is unrelated (with -b) |
|
|||
130 | --base a base changeset to specify instead of a destination (with -b) |
|
|||
131 | -e --ssh specify ssh command to use |
|
|||
132 | --remotecmd specify hg command to run on the remote side |
|
|||
133 |
|
85 | |||
134 | use "hg -v help email" to show global options |
|
86 | diff -r 8580ff50825a -r 97d72e5f12c7 b | |
|
87 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |||
|
88 | +++ b/b Thu Jan 01 00:00:02 1970 +0000 | |||
|
89 | @@ -0,0 +1,1 @@ | |||
|
90 | +b | |||
|
91 | ||||
|
92 | This patch series consists of 2 patches. | |||
|
93 | ||||
|
94 | ||||
|
95 | Write the introductory message for the patch series. | |||
|
96 | ||||
|
97 | ||||
|
98 | Displaying [PATCH 0 of 2] test ... | |||
|
99 | Displaying [PATCH 1 of 2] a ... | |||
|
100 | Displaying [PATCH 2 of 2] b ... | |||
135 | This patch series consists of 2 patches. |
|
101 | This patch series consists of 2 patches. | |
136 |
|
102 | |||
137 |
|
103 | |||
138 | Write the introductory message for the patch series. |
|
104 | Write the introductory message for the patch series. | |
139 |
|
105 | |||
140 |
|
106 | |||
141 | Writing [PATCH 0 of 2] test ... |
|
107 | Writing [PATCH 0 of 2] test ... | |
142 | Writing [PATCH 1 of 2] a ... |
|
108 | Writing [PATCH 1 of 2] a ... | |
143 | Writing [PATCH 2 of 2] b ... |
|
109 | Writing [PATCH 2 of 2] b ... |
General Comments 0
You need to be logged in to leave comments.
Login now