Mercurial > hg
comparison tests/test-patchbomb @ 4566:087b3ae4f08a
patchbomb: add --date option
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue, 12 Jun 2007 14:52:34 -0700 |
parents | 1cf908c00479 |
children | 8b87bd4fb7ce |
comparison
equal
deleted
inserted
replaced
4565:1cf908c00479 | 4566:087b3ae4f08a |
---|---|
1 #!/bin/sh | 1 adding a |
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 | |
2 | 12 |
3 echo "[extensions]" >> $HGRCPATH | 13 # HG changeset patch |
4 echo "patchbomb=" >> $HGRCPATH | 14 # User test |
15 # Date 1 0 | |
16 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab | |
17 # Parent 0000000000000000000000000000000000000000 | |
18 a | |
5 | 19 |
6 hg init | 20 diff -r 000000000000 -r 8580ff50825a a |
7 echo a > a | 21 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
8 hg commit -Ama -d '1 0' | 22 +++ b/a Thu Jan 01 00:00:01 1970 +0000 |
23 @@ -0,0 +1,1 @@ | |
24 +a | |
9 | 25 |
10 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar tip | \ | 26 This patch series consists of 1 patches. |
11 sed -e 's/\(Message-Id:.*@\).*/\1/' | |
12 | 27 |
13 echo b > b | |
14 hg commit -Amb -d '2 0' | |
15 | 28 |
16 hg email --date '1970-1-1 0:2' -n -f quux -t foo -c bar -s test 0:tip | \ | 29 Displaying [PATCH] a ... |
17 sed -e 's/\(Message-Id:.*@\|In-Reply-To:.*@\).*/\1/' | 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: <patchbomb.120@ | |
36 Date: Thu, 01 Jan 1970 00:02:00 +0000 | |
37 From: quux | |
38 To: foo | |
39 Cc: bar | |
18 | 40 |
19 hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip | 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 | |
54 # HG changeset patch | |
55 # User test | |
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 | |
79 # HG changeset patch | |
80 # User test | |
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 | |
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 ... | |
101 This patch series consists of 2 patches. | |
102 | |
103 | |
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 ... |