Show More
@@ -1,188 +1,190 b'' | |||
|
1 | 1 | This emulates the effects of an hg pull --rebase in which the remote repo |
|
2 | 2 | already has one local mq patch |
|
3 | 3 | |
|
4 | 4 | $ cat >> $HGRCPATH <<EOF |
|
5 | > [format] | |
|
6 | > usegeneraldelta=yes | |
|
5 | 7 | > [extensions] |
|
6 | 8 | > rebase= |
|
7 | 9 | > mq= |
|
8 | 10 | > |
|
9 | 11 | > [phases] |
|
10 | 12 | > publish=False |
|
11 | 13 | > |
|
12 | 14 | > [alias] |
|
13 | 15 | > tglog = log -G --template "{rev}: '{desc}' tags: {tags}\n" |
|
14 | 16 | > EOF |
|
15 | 17 | |
|
16 | 18 | |
|
17 | 19 | $ hg init a |
|
18 | 20 | $ cd a |
|
19 | 21 | $ hg qinit -c |
|
20 | 22 | |
|
21 | 23 | $ echo c1 > c1 |
|
22 | 24 | $ hg add c1 |
|
23 | 25 | $ hg ci -m C1 |
|
24 | 26 | |
|
25 | 27 | $ echo r1 > r1 |
|
26 | 28 | $ hg add r1 |
|
27 | 29 | $ hg ci -m R1 |
|
28 | 30 | |
|
29 | 31 | $ hg up -q 0 |
|
30 | 32 | |
|
31 | 33 | $ hg qnew p0.patch -d '1 0' |
|
32 | 34 | $ echo p0 > p0 |
|
33 | 35 | $ hg add p0 |
|
34 | 36 | $ hg qref -m P0 |
|
35 | 37 | |
|
36 | 38 | $ hg qnew p1.patch -d '2 0' |
|
37 | 39 | $ echo p1 > p1 |
|
38 | 40 | $ hg add p1 |
|
39 | 41 | $ hg qref -m P1 |
|
40 | 42 | |
|
41 | 43 | $ hg export qtip > p1.patch |
|
42 | 44 | |
|
43 | 45 | $ hg up -q -C 1 |
|
44 | 46 | |
|
45 | 47 | $ hg import p1.patch |
|
46 | 48 | applying p1.patch |
|
47 | 49 | |
|
48 | 50 | $ rm p1.patch |
|
49 | 51 | |
|
50 | 52 | $ hg up -q -C qtip |
|
51 | 53 | |
|
52 | 54 | $ hg rebase -v |
|
53 | 55 | rebasing 2:13a46ce44f60 "P0" (p0.patch qbase) |
|
54 | 56 | resolving manifests |
|
55 | 57 | removing p0 |
|
56 | 58 | getting r1 |
|
57 | 59 | resolving manifests |
|
58 | 60 | getting p0 |
|
59 | 61 | committing files: |
|
60 | 62 | p0 |
|
61 | 63 | committing manifest |
|
62 | 64 | committing changelog |
|
63 | 65 | rebasing 3:148775c71080 "P1" (p1.patch qtip) |
|
64 | 66 | resolving manifests |
|
65 | 67 | note: rebase of 3:148775c71080 created no changes to commit |
|
66 | 68 | rebase merging completed |
|
67 | 69 | updating mq patch p0.patch to 5:9ecc820b1737 |
|
68 | 70 | $TESTTMP/a/.hg/patches/p0.patch (glob) |
|
69 | 71 | 2 changesets found |
|
70 | 72 | uncompressed size of bundle content: |
|
71 |
3 |
|
|
72 |
2 |
|
|
73 |
1 |
|
|
74 |
1 |
|
|
73 | 384 (changelog) | |
|
74 | 324 (manifests) | |
|
75 | 129 p0 | |
|
76 | 129 p1 | |
|
75 | 77 | saved backup bundle to $TESTTMP/a/.hg/strip-backup/13a46ce44f60-5da6ecfb-backup.hg (glob) |
|
76 | 78 | 2 changesets found |
|
77 | 79 | uncompressed size of bundle content: |
|
78 |
3 |
|
|
79 |
2 |
|
|
80 |
1 |
|
|
81 |
1 |
|
|
80 | 439 (changelog) | |
|
81 | 324 (manifests) | |
|
82 | 129 p0 | |
|
83 | 129 p1 | |
|
82 | 84 | adding branch |
|
83 | 85 | adding changesets |
|
84 | 86 | adding manifests |
|
85 | 87 | adding file changes |
|
86 | 88 | added 2 changesets with 2 changes to 2 files |
|
87 | 89 | rebase completed |
|
88 | 90 | 1 revisions have been skipped |
|
89 | 91 | |
|
90 | 92 | $ hg tglog |
|
91 | 93 | @ 3: 'P0' tags: p0.patch qbase qtip tip |
|
92 | 94 | | |
|
93 | 95 | o 2: 'P1' tags: qparent |
|
94 | 96 | | |
|
95 | 97 | o 1: 'R1' tags: |
|
96 | 98 | | |
|
97 | 99 | o 0: 'C1' tags: |
|
98 | 100 | |
|
99 | 101 | $ cd .. |
|
100 | 102 | |
|
101 | 103 | |
|
102 | 104 | $ hg init b |
|
103 | 105 | $ cd b |
|
104 | 106 | $ hg qinit -c |
|
105 | 107 | |
|
106 | 108 | $ for i in r0 r1 r2 r3 r4 r5 r6; |
|
107 | 109 | > do |
|
108 | 110 | > echo $i > $i |
|
109 | 111 | > hg ci -Am $i |
|
110 | 112 | > done |
|
111 | 113 | adding r0 |
|
112 | 114 | adding r1 |
|
113 | 115 | adding r2 |
|
114 | 116 | adding r3 |
|
115 | 117 | adding r4 |
|
116 | 118 | adding r5 |
|
117 | 119 | adding r6 |
|
118 | 120 | |
|
119 | 121 | $ hg qimport -r 1:tip |
|
120 | 122 | |
|
121 | 123 | $ hg up -q 0 |
|
122 | 124 | |
|
123 | 125 | $ for i in r1 r3 r7 r8; |
|
124 | 126 | > do |
|
125 | 127 | > echo $i > $i |
|
126 | 128 | > hg ci -Am branch2-$i |
|
127 | 129 | > done |
|
128 | 130 | adding r1 |
|
129 | 131 | created new head |
|
130 | 132 | adding r3 |
|
131 | 133 | adding r7 |
|
132 | 134 | adding r8 |
|
133 | 135 | |
|
134 | 136 | $ echo somethingelse > r4 |
|
135 | 137 | $ hg ci -Am branch2-r4 |
|
136 | 138 | adding r4 |
|
137 | 139 | |
|
138 | 140 | $ echo r6 > r6 |
|
139 | 141 | $ hg ci -Am branch2-r6 |
|
140 | 142 | adding r6 |
|
141 | 143 | |
|
142 | 144 | $ hg up -q qtip |
|
143 | 145 | |
|
144 | 146 | $ HGMERGE=internal:fail hg rebase |
|
145 | 147 | rebasing 1:b4bffa6e4776 "r1" (qbase r1) |
|
146 | 148 | note: rebase of 1:b4bffa6e4776 created no changes to commit |
|
147 | 149 | rebasing 2:c0fd129beb01 "r2" (r2) |
|
148 | 150 | rebasing 3:6ff5b8feed8e "r3" (r3) |
|
149 | 151 | note: rebase of 3:6ff5b8feed8e created no changes to commit |
|
150 | 152 | rebasing 4:094320fec554 "r4" (r4) |
|
151 | 153 | unresolved conflicts (see hg resolve, then hg rebase --continue) |
|
152 | 154 | [1] |
|
153 | 155 | |
|
154 | 156 | $ HGMERGE=internal:local hg resolve --all |
|
155 | 157 | (no more unresolved files) |
|
156 | 158 | |
|
157 | 159 | $ hg rebase --continue |
|
158 | 160 | already rebased 1:b4bffa6e4776 "r1" (qbase r1) as 057f55ff8f44 |
|
159 | 161 | already rebased 2:c0fd129beb01 "r2" (r2) as 1660ab13ce9a |
|
160 | 162 | already rebased 3:6ff5b8feed8e "r3" (r3) as 1660ab13ce9a |
|
161 | 163 | rebasing 4:094320fec554 "r4" (r4) |
|
162 | 164 | note: rebase of 4:094320fec554 created no changes to commit |
|
163 | 165 | rebasing 5:681a378595ba "r5" (r5) |
|
164 | 166 | rebasing 6:512a1f24768b "r6" (qtip r6) |
|
165 | 167 | note: rebase of 6:512a1f24768b created no changes to commit |
|
166 | 168 | saved backup bundle to $TESTTMP/b/.hg/strip-backup/b4bffa6e4776-b9bfb84d-backup.hg (glob) |
|
167 | 169 | |
|
168 | 170 | $ hg tglog |
|
169 | 171 | @ 8: 'r5' tags: qtip r5 tip |
|
170 | 172 | | |
|
171 | 173 | o 7: 'r2' tags: qbase r2 |
|
172 | 174 | | |
|
173 | 175 | o 6: 'branch2-r6' tags: qparent |
|
174 | 176 | | |
|
175 | 177 | o 5: 'branch2-r4' tags: |
|
176 | 178 | | |
|
177 | 179 | o 4: 'branch2-r8' tags: |
|
178 | 180 | | |
|
179 | 181 | o 3: 'branch2-r7' tags: |
|
180 | 182 | | |
|
181 | 183 | o 2: 'branch2-r3' tags: |
|
182 | 184 | | |
|
183 | 185 | o 1: 'branch2-r1' tags: |
|
184 | 186 | | |
|
185 | 187 | o 0: 'r0' tags: |
|
186 | 188 | |
|
187 | 189 | |
|
188 | 190 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now