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