Show More
@@ -1,344 +1,382 b'' | |||||
1 | Testing the case when there is no infinitepush extension present on the client |
|
1 | Testing the case when there is no infinitepush extension present on the client | |
2 | side and the server routes each push to bundlestore. This case is very much |
|
2 | side and the server routes each push to bundlestore. This case is very much | |
3 | similar to CI use case. |
|
3 | similar to CI use case. | |
4 |
|
4 | |||
5 | Setup |
|
5 | Setup | |
6 | ----- |
|
6 | ----- | |
7 |
|
7 | |||
8 | $ . "$TESTDIR/library-infinitepush.sh" |
|
8 | $ . "$TESTDIR/library-infinitepush.sh" | |
9 | $ cat >> $HGRCPATH <<EOF |
|
9 | $ cat >> $HGRCPATH <<EOF | |
10 | > [alias] |
|
10 | > [alias] | |
11 | > glog = log -GT "{rev}:{node|short} {desc}\n{phase}" |
|
11 | > glog = log -GT "{rev}:{node|short} {desc}\n{phase}" | |
12 | > EOF |
|
12 | > EOF | |
13 | $ cp $HGRCPATH $TESTTMP/defaulthgrc |
|
13 | $ cp $HGRCPATH $TESTTMP/defaulthgrc | |
14 | $ hg init repo |
|
14 | $ hg init repo | |
15 | $ cd repo |
|
15 | $ cd repo | |
16 | $ setupserver |
|
16 | $ setupserver | |
17 | $ echo "pushtobundlestore = True" >> .hg/hgrc |
|
17 | $ echo "pushtobundlestore = True" >> .hg/hgrc | |
18 | $ echo "[extensions]" >> .hg/hgrc |
|
18 | $ echo "[extensions]" >> .hg/hgrc | |
19 | $ echo "infinitepush=" >> .hg/hgrc |
|
19 | $ echo "infinitepush=" >> .hg/hgrc | |
20 | $ echo initialcommit > initialcommit |
|
20 | $ echo initialcommit > initialcommit | |
21 | $ hg ci -Aqm "initialcommit" |
|
21 | $ hg ci -Aqm "initialcommit" | |
22 | $ hg phase --public . |
|
22 | $ hg phase --public . | |
23 |
|
23 | |||
24 | $ cd .. |
|
24 | $ cd .. | |
25 | $ hg clone repo client -q |
|
25 | $ hg clone repo client -q | |
|
26 | $ hg clone repo client2 -q | |||
26 | $ cd client |
|
27 | $ cd client | |
27 |
|
28 | |||
28 | Pushing a new commit from the client to the server |
|
29 | Pushing a new commit from the client to the server | |
29 | ----------------------------------------------------- |
|
30 | ----------------------------------------------------- | |
30 |
|
31 | |||
31 | $ echo foobar > a |
|
32 | $ echo foobar > a | |
32 | $ hg ci -Aqm "added a" |
|
33 | $ hg ci -Aqm "added a" | |
33 | $ hg glog |
|
34 | $ hg glog | |
34 | @ 1:6cb0989601f1 added a |
|
35 | @ 1:6cb0989601f1 added a | |
35 | | draft |
|
36 | | draft | |
36 | o 0:67145f466344 initialcommit |
|
37 | o 0:67145f466344 initialcommit | |
37 | public |
|
38 | public | |
38 |
|
39 | |||
39 | $ hg push |
|
40 | $ hg push | |
40 | pushing to $TESTTMP/repo |
|
41 | pushing to $TESTTMP/repo | |
41 | searching for changes |
|
42 | searching for changes | |
42 | storing changesets on the bundlestore |
|
43 | storing changesets on the bundlestore | |
43 | pushing 1 commit: |
|
44 | pushing 1 commit: | |
44 | 6cb0989601f1 added a |
|
45 | 6cb0989601f1 added a | |
45 |
|
46 | |||
46 | $ scratchnodes |
|
47 | $ scratchnodes | |
47 | 6cb0989601f1fb5805238edfb16f3606713d9a0b a4c202c147a9c4bb91bbadb56321fc5f3950f7f2 |
|
48 | 6cb0989601f1fb5805238edfb16f3606713d9a0b a4c202c147a9c4bb91bbadb56321fc5f3950f7f2 | |
48 |
|
49 | |||
49 | Understanding how data is stored on the bundlestore in server |
|
50 | Understanding how data is stored on the bundlestore in server | |
50 | ------------------------------------------------------------- |
|
51 | ------------------------------------------------------------- | |
51 |
|
52 | |||
52 | There are two things, filebundlestore and index |
|
53 | There are two things, filebundlestore and index | |
53 | $ ls ../repo/.hg/scratchbranches |
|
54 | $ ls ../repo/.hg/scratchbranches | |
54 | filebundlestore |
|
55 | filebundlestore | |
55 | index |
|
56 | index | |
56 |
|
57 | |||
57 | filebundlestore stores the bundles |
|
58 | filebundlestore stores the bundles | |
58 | $ ls ../repo/.hg/scratchbranches/filebundlestore/a4/c2/ |
|
59 | $ ls ../repo/.hg/scratchbranches/filebundlestore/a4/c2/ | |
59 | a4c202c147a9c4bb91bbadb56321fc5f3950f7f2 |
|
60 | a4c202c147a9c4bb91bbadb56321fc5f3950f7f2 | |
60 |
|
61 | |||
61 | index/nodemap stores a map of node id and file in which bundle is stored in filebundlestore |
|
62 | index/nodemap stores a map of node id and file in which bundle is stored in filebundlestore | |
62 | $ ls ../repo/.hg/scratchbranches/index/ |
|
63 | $ ls ../repo/.hg/scratchbranches/index/ | |
63 | nodemap |
|
64 | nodemap | |
64 | $ ls ../repo/.hg/scratchbranches/index/nodemap/ |
|
65 | $ ls ../repo/.hg/scratchbranches/index/nodemap/ | |
65 | 6cb0989601f1fb5805238edfb16f3606713d9a0b |
|
66 | 6cb0989601f1fb5805238edfb16f3606713d9a0b | |
66 |
|
67 | |||
67 | $ cd ../repo |
|
68 | $ cd ../repo | |
68 |
|
69 | |||
69 | Checking that the commit was not applied to revlog on the server |
|
70 | Checking that the commit was not applied to revlog on the server | |
70 | ------------------------------------------------------------------ |
|
71 | ------------------------------------------------------------------ | |
71 |
|
72 | |||
72 | $ hg glog |
|
73 | $ hg glog | |
73 | @ 0:67145f466344 initialcommit |
|
74 | @ 0:67145f466344 initialcommit | |
74 | public |
|
75 | public | |
75 |
|
76 | |||
76 | Applying the changeset from the bundlestore |
|
77 | Applying the changeset from the bundlestore | |
77 | -------------------------------------------- |
|
78 | -------------------------------------------- | |
78 |
|
79 | |||
79 | $ hg unbundle .hg/scratchbranches/filebundlestore/a4/c2/a4c202c147a9c4bb91bbadb56321fc5f3950f7f2 |
|
80 | $ hg unbundle .hg/scratchbranches/filebundlestore/a4/c2/a4c202c147a9c4bb91bbadb56321fc5f3950f7f2 | |
80 | adding changesets |
|
81 | adding changesets | |
81 | adding manifests |
|
82 | adding manifests | |
82 | adding file changes |
|
83 | adding file changes | |
83 | added 1 changesets with 1 changes to 1 files |
|
84 | added 1 changesets with 1 changes to 1 files | |
84 | new changesets 6cb0989601f1 |
|
85 | new changesets 6cb0989601f1 | |
85 | (run 'hg update' to get a working copy) |
|
86 | (run 'hg update' to get a working copy) | |
86 |
|
87 | |||
87 | $ hg glog |
|
88 | $ hg glog | |
88 | o 1:6cb0989601f1 added a |
|
89 | o 1:6cb0989601f1 added a | |
89 | | public |
|
90 | | public | |
90 | @ 0:67145f466344 initialcommit |
|
91 | @ 0:67145f466344 initialcommit | |
91 | public |
|
92 | public | |
92 |
|
93 | |||
93 | Pushing more changesets from the local repo |
|
94 | Pushing more changesets from the local repo | |
94 | -------------------------------------------- |
|
95 | -------------------------------------------- | |
95 |
|
96 | |||
96 | $ cd ../client |
|
97 | $ cd ../client | |
97 | $ echo b > b |
|
98 | $ echo b > b | |
98 | $ hg ci -Aqm "added b" |
|
99 | $ hg ci -Aqm "added b" | |
99 | $ echo c > c |
|
100 | $ echo c > c | |
100 | $ hg ci -Aqm "added c" |
|
101 | $ hg ci -Aqm "added c" | |
101 | $ hg glog |
|
102 | $ hg glog | |
102 | @ 3:bf8a6e3011b3 added c |
|
103 | @ 3:bf8a6e3011b3 added c | |
103 | | draft |
|
104 | | draft | |
104 | o 2:eaba929e866c added b |
|
105 | o 2:eaba929e866c added b | |
105 | | draft |
|
106 | | draft | |
106 | o 1:6cb0989601f1 added a |
|
107 | o 1:6cb0989601f1 added a | |
107 | | public |
|
108 | | public | |
108 | o 0:67145f466344 initialcommit |
|
109 | o 0:67145f466344 initialcommit | |
109 | public |
|
110 | public | |
110 |
|
111 | |||
111 | $ hg push |
|
112 | $ hg push | |
112 | pushing to $TESTTMP/repo |
|
113 | pushing to $TESTTMP/repo | |
113 | searching for changes |
|
114 | searching for changes | |
114 | storing changesets on the bundlestore |
|
115 | storing changesets on the bundlestore | |
115 | pushing 2 commits: |
|
116 | pushing 2 commits: | |
116 | eaba929e866c added b |
|
117 | eaba929e866c added b | |
117 | bf8a6e3011b3 added c |
|
118 | bf8a6e3011b3 added c | |
118 |
|
119 | |||
119 | Checking that changesets are not applied on the server |
|
120 | Checking that changesets are not applied on the server | |
120 | ------------------------------------------------------ |
|
121 | ------------------------------------------------------ | |
121 |
|
122 | |||
122 | $ hg glog -R ../repo |
|
123 | $ hg glog -R ../repo | |
123 | o 1:6cb0989601f1 added a |
|
124 | o 1:6cb0989601f1 added a | |
124 | | public |
|
125 | | public | |
125 | @ 0:67145f466344 initialcommit |
|
126 | @ 0:67145f466344 initialcommit | |
126 | public |
|
127 | public | |
127 |
|
128 | |||
128 | Both of the new changesets are stored in a single bundle-file |
|
129 | Both of the new changesets are stored in a single bundle-file | |
129 | $ scratchnodes |
|
130 | $ scratchnodes | |
130 | 6cb0989601f1fb5805238edfb16f3606713d9a0b a4c202c147a9c4bb91bbadb56321fc5f3950f7f2 |
|
131 | 6cb0989601f1fb5805238edfb16f3606713d9a0b a4c202c147a9c4bb91bbadb56321fc5f3950f7f2 | |
131 | bf8a6e3011b345146bbbedbcb1ebd4837571492a ee41a41cefb7817cbfb235b4f6e9f27dbad6ca1f |
|
132 | bf8a6e3011b345146bbbedbcb1ebd4837571492a ee41a41cefb7817cbfb235b4f6e9f27dbad6ca1f | |
132 | eaba929e866c59bc9a6aada5a9dd2f6990db83c0 ee41a41cefb7817cbfb235b4f6e9f27dbad6ca1f |
|
133 | eaba929e866c59bc9a6aada5a9dd2f6990db83c0 ee41a41cefb7817cbfb235b4f6e9f27dbad6ca1f | |
133 |
|
134 | |||
134 | Pushing more changesets to the server |
|
135 | Pushing more changesets to the server | |
135 | ------------------------------------- |
|
136 | ------------------------------------- | |
136 |
|
137 | |||
137 | $ echo d > d |
|
138 | $ echo d > d | |
138 | $ hg ci -Aqm "added d" |
|
139 | $ hg ci -Aqm "added d" | |
139 | $ echo e > e |
|
140 | $ echo e > e | |
140 | $ hg ci -Aqm "added e" |
|
141 | $ hg ci -Aqm "added e" | |
141 |
|
142 | |||
142 | XXX: we should have pushed only the parts which are not in bundlestore |
|
143 | XXX: we should have pushed only the parts which are not in bundlestore | |
143 | $ hg push |
|
144 | $ hg push | |
144 | pushing to $TESTTMP/repo |
|
145 | pushing to $TESTTMP/repo | |
145 | searching for changes |
|
146 | searching for changes | |
146 | storing changesets on the bundlestore |
|
147 | storing changesets on the bundlestore | |
147 | pushing 4 commits: |
|
148 | pushing 4 commits: | |
148 | eaba929e866c added b |
|
149 | eaba929e866c added b | |
149 | bf8a6e3011b3 added c |
|
150 | bf8a6e3011b3 added c | |
150 | 1bb96358eda2 added d |
|
151 | 1bb96358eda2 added d | |
151 | b4e4bce66051 added e |
|
152 | b4e4bce66051 added e | |
152 |
|
153 | |||
153 | Sneak peek into the bundlestore at the server |
|
154 | Sneak peek into the bundlestore at the server | |
154 | $ scratchnodes |
|
155 | $ scratchnodes | |
155 | 1bb96358eda285b536c6d1c66846a7cdb2336cea 57e00c0d4f26e2a2a72b751b63d9abc4f3eb28e7 |
|
156 | 1bb96358eda285b536c6d1c66846a7cdb2336cea 57e00c0d4f26e2a2a72b751b63d9abc4f3eb28e7 | |
156 | 6cb0989601f1fb5805238edfb16f3606713d9a0b a4c202c147a9c4bb91bbadb56321fc5f3950f7f2 |
|
157 | 6cb0989601f1fb5805238edfb16f3606713d9a0b a4c202c147a9c4bb91bbadb56321fc5f3950f7f2 | |
157 | b4e4bce660512ad3e71189e14588a70ac8e31fef 57e00c0d4f26e2a2a72b751b63d9abc4f3eb28e7 |
|
158 | b4e4bce660512ad3e71189e14588a70ac8e31fef 57e00c0d4f26e2a2a72b751b63d9abc4f3eb28e7 | |
158 | bf8a6e3011b345146bbbedbcb1ebd4837571492a 57e00c0d4f26e2a2a72b751b63d9abc4f3eb28e7 |
|
159 | bf8a6e3011b345146bbbedbcb1ebd4837571492a 57e00c0d4f26e2a2a72b751b63d9abc4f3eb28e7 | |
159 | eaba929e866c59bc9a6aada5a9dd2f6990db83c0 57e00c0d4f26e2a2a72b751b63d9abc4f3eb28e7 |
|
160 | eaba929e866c59bc9a6aada5a9dd2f6990db83c0 57e00c0d4f26e2a2a72b751b63d9abc4f3eb28e7 | |
160 |
|
161 | |||
161 | Checking if `hg pull` pulls something or `hg incoming` shows something |
|
162 | Checking if `hg pull` pulls something or `hg incoming` shows something | |
162 | ----------------------------------------------------------------------- |
|
163 | ----------------------------------------------------------------------- | |
163 |
|
164 | |||
164 | $ hg incoming |
|
165 | $ hg incoming | |
165 | comparing with $TESTTMP/repo |
|
166 | comparing with $TESTTMP/repo | |
166 | searching for changes |
|
167 | searching for changes | |
167 | no changes found |
|
168 | no changes found | |
168 | [1] |
|
169 | [1] | |
169 |
|
170 | |||
170 | $ hg pull |
|
171 | $ hg pull | |
171 | pulling from $TESTTMP/repo |
|
172 | pulling from $TESTTMP/repo | |
172 | searching for changes |
|
173 | searching for changes | |
173 | no changes found |
|
174 | no changes found | |
174 |
|
175 | |||
|
176 | Pulling from second client to test `hg pull -r <rev>` | |||
|
177 | ------------------------------------------------------ | |||
|
178 | ||||
|
179 | Pulling the revision which is applied | |||
|
180 | ||||
|
181 | $ cd ../client2 | |||
|
182 | $ hg pull -r 6cb0989601f1 | |||
|
183 | pulling from $TESTTMP/repo | |||
|
184 | searching for changes | |||
|
185 | adding changesets | |||
|
186 | adding manifests | |||
|
187 | adding file changes | |||
|
188 | added 1 changesets with 1 changes to 1 files | |||
|
189 | new changesets 6cb0989601f1 | |||
|
190 | (run 'hg update' to get a working copy) | |||
|
191 | $ hg glog | |||
|
192 | o 1:6cb0989601f1 added a | |||
|
193 | | public | |||
|
194 | @ 0:67145f466344 initialcommit | |||
|
195 | public | |||
|
196 | ||||
|
197 | Pulling the revision which is in bundlestore | |||
|
198 | XXX: we should support pulling revisions from bundlestore without client side | |||
|
199 | wrapping | |||
|
200 | ||||
|
201 | $ hg pull -r b4e4bce660512ad3e71189e14588a70ac8e31fef | |||
|
202 | pulling from $TESTTMP/repo | |||
|
203 | abort: unknown revision 'b4e4bce660512ad3e71189e14588a70ac8e31fef'! | |||
|
204 | [255] | |||
|
205 | $ hg glog | |||
|
206 | o 1:6cb0989601f1 added a | |||
|
207 | | public | |||
|
208 | @ 0:67145f466344 initialcommit | |||
|
209 | public | |||
|
210 | ||||
|
211 | $ cd ../client | |||
|
212 | ||||
175 | Checking storage of phase information with the bundle on bundlestore |
|
213 | Checking storage of phase information with the bundle on bundlestore | |
176 | --------------------------------------------------------------------- |
|
214 | --------------------------------------------------------------------- | |
177 |
|
215 | |||
178 | creating a draft commit |
|
216 | creating a draft commit | |
179 | $ cat >> $HGRCPATH <<EOF |
|
217 | $ cat >> $HGRCPATH <<EOF | |
180 | > [phases] |
|
218 | > [phases] | |
181 | > publish = False |
|
219 | > publish = False | |
182 | > EOF |
|
220 | > EOF | |
183 | $ echo f > f |
|
221 | $ echo f > f | |
184 | $ hg ci -Aqm "added f" |
|
222 | $ hg ci -Aqm "added f" | |
185 | $ hg glog -r '.^::' |
|
223 | $ hg glog -r '.^::' | |
186 | @ 6:9b42578d4447 added f |
|
224 | @ 6:9b42578d4447 added f | |
187 | | draft |
|
225 | | draft | |
188 | o 5:b4e4bce66051 added e |
|
226 | o 5:b4e4bce66051 added e | |
189 | | public |
|
227 | | public | |
190 | ~ |
|
228 | ~ | |
191 |
|
229 | |||
192 | $ hg push |
|
230 | $ hg push | |
193 | pushing to $TESTTMP/repo |
|
231 | pushing to $TESTTMP/repo | |
194 | searching for changes |
|
232 | searching for changes | |
195 | storing changesets on the bundlestore |
|
233 | storing changesets on the bundlestore | |
196 | pushing 5 commits: |
|
234 | pushing 5 commits: | |
197 | eaba929e866c added b |
|
235 | eaba929e866c added b | |
198 | bf8a6e3011b3 added c |
|
236 | bf8a6e3011b3 added c | |
199 | 1bb96358eda2 added d |
|
237 | 1bb96358eda2 added d | |
200 | b4e4bce66051 added e |
|
238 | b4e4bce66051 added e | |
201 | 9b42578d4447 added f |
|
239 | 9b42578d4447 added f | |
202 |
|
240 | |||
203 | XXX: the phase of 9b42578d4447 should not be changed here |
|
241 | XXX: the phase of 9b42578d4447 should not be changed here | |
204 | $ hg glog -r . |
|
242 | $ hg glog -r . | |
205 | @ 6:9b42578d4447 added f |
|
243 | @ 6:9b42578d4447 added f | |
206 | | public |
|
244 | | public | |
207 | ~ |
|
245 | ~ | |
208 |
|
246 | |||
209 | applying the bundle on the server to check preservation of phase-information |
|
247 | applying the bundle on the server to check preservation of phase-information | |
210 |
|
248 | |||
211 | $ cd ../repo |
|
249 | $ cd ../repo | |
212 | $ scratchnodes |
|
250 | $ scratchnodes | |
213 | 1bb96358eda285b536c6d1c66846a7cdb2336cea 0a6e70ecd5b98d22382f69b93909f557ac6a9927 |
|
251 | 1bb96358eda285b536c6d1c66846a7cdb2336cea 0a6e70ecd5b98d22382f69b93909f557ac6a9927 | |
214 | 6cb0989601f1fb5805238edfb16f3606713d9a0b a4c202c147a9c4bb91bbadb56321fc5f3950f7f2 |
|
252 | 6cb0989601f1fb5805238edfb16f3606713d9a0b a4c202c147a9c4bb91bbadb56321fc5f3950f7f2 | |
215 | 9b42578d44473575994109161430d65dd147d16d 0a6e70ecd5b98d22382f69b93909f557ac6a9927 |
|
253 | 9b42578d44473575994109161430d65dd147d16d 0a6e70ecd5b98d22382f69b93909f557ac6a9927 | |
216 | b4e4bce660512ad3e71189e14588a70ac8e31fef 0a6e70ecd5b98d22382f69b93909f557ac6a9927 |
|
254 | b4e4bce660512ad3e71189e14588a70ac8e31fef 0a6e70ecd5b98d22382f69b93909f557ac6a9927 | |
217 | bf8a6e3011b345146bbbedbcb1ebd4837571492a 0a6e70ecd5b98d22382f69b93909f557ac6a9927 |
|
255 | bf8a6e3011b345146bbbedbcb1ebd4837571492a 0a6e70ecd5b98d22382f69b93909f557ac6a9927 | |
218 | eaba929e866c59bc9a6aada5a9dd2f6990db83c0 0a6e70ecd5b98d22382f69b93909f557ac6a9927 |
|
256 | eaba929e866c59bc9a6aada5a9dd2f6990db83c0 0a6e70ecd5b98d22382f69b93909f557ac6a9927 | |
219 |
|
257 | |||
220 | $ hg unbundle .hg/scratchbranches/filebundlestore/0a/6e/0a6e70ecd5b98d22382f69b93909f557ac6a9927 |
|
258 | $ hg unbundle .hg/scratchbranches/filebundlestore/0a/6e/0a6e70ecd5b98d22382f69b93909f557ac6a9927 | |
221 | adding changesets |
|
259 | adding changesets | |
222 | adding manifests |
|
260 | adding manifests | |
223 | adding file changes |
|
261 | adding file changes | |
224 | added 5 changesets with 5 changes to 5 files |
|
262 | added 5 changesets with 5 changes to 5 files | |
225 | new changesets eaba929e866c:9b42578d4447 |
|
263 | new changesets eaba929e866c:9b42578d4447 | |
226 | (run 'hg update' to get a working copy) |
|
264 | (run 'hg update' to get a working copy) | |
227 |
|
265 | |||
228 | $ hg glog |
|
266 | $ hg glog | |
229 | o 6:9b42578d4447 added f |
|
267 | o 6:9b42578d4447 added f | |
230 | | draft |
|
268 | | draft | |
231 | o 5:b4e4bce66051 added e |
|
269 | o 5:b4e4bce66051 added e | |
232 | | public |
|
270 | | public | |
233 | o 4:1bb96358eda2 added d |
|
271 | o 4:1bb96358eda2 added d | |
234 | | public |
|
272 | | public | |
235 | o 3:bf8a6e3011b3 added c |
|
273 | o 3:bf8a6e3011b3 added c | |
236 | | public |
|
274 | | public | |
237 | o 2:eaba929e866c added b |
|
275 | o 2:eaba929e866c added b | |
238 | | public |
|
276 | | public | |
239 | o 1:6cb0989601f1 added a |
|
277 | o 1:6cb0989601f1 added a | |
240 | | public |
|
278 | | public | |
241 | @ 0:67145f466344 initialcommit |
|
279 | @ 0:67145f466344 initialcommit | |
242 | public |
|
280 | public | |
243 |
|
281 | |||
244 | Checking storage of obsmarkers in the bundlestore |
|
282 | Checking storage of obsmarkers in the bundlestore | |
245 | -------------------------------------------------- |
|
283 | -------------------------------------------------- | |
246 |
|
284 | |||
247 | enabling obsmarkers and rebase extension |
|
285 | enabling obsmarkers and rebase extension | |
248 |
|
286 | |||
249 | $ cat >> $HGRCPATH << EOF |
|
287 | $ cat >> $HGRCPATH << EOF | |
250 | > [experimental] |
|
288 | > [experimental] | |
251 | > evolution = all |
|
289 | > evolution = all | |
252 | > [extensions] |
|
290 | > [extensions] | |
253 | > rebase = |
|
291 | > rebase = | |
254 | > EOF |
|
292 | > EOF | |
255 |
|
293 | |||
256 | $ cd ../client |
|
294 | $ cd ../client | |
257 |
|
295 | |||
258 | $ hg phase -r . --draft --force |
|
296 | $ hg phase -r . --draft --force | |
259 | $ hg rebase -r 6 -d 3 |
|
297 | $ hg rebase -r 6 -d 3 | |
260 | rebasing 6:9b42578d4447 "added f" (tip) |
|
298 | rebasing 6:9b42578d4447 "added f" (tip) | |
261 |
|
299 | |||
262 | $ hg glog |
|
300 | $ hg glog | |
263 | @ 7:99949238d9ac added f |
|
301 | @ 7:99949238d9ac added f | |
264 | | draft |
|
302 | | draft | |
265 | | o 5:b4e4bce66051 added e |
|
303 | | o 5:b4e4bce66051 added e | |
266 | | | public |
|
304 | | | public | |
267 | | o 4:1bb96358eda2 added d |
|
305 | | o 4:1bb96358eda2 added d | |
268 | |/ public |
|
306 | |/ public | |
269 | o 3:bf8a6e3011b3 added c |
|
307 | o 3:bf8a6e3011b3 added c | |
270 | | public |
|
308 | | public | |
271 | o 2:eaba929e866c added b |
|
309 | o 2:eaba929e866c added b | |
272 | | public |
|
310 | | public | |
273 | o 1:6cb0989601f1 added a |
|
311 | o 1:6cb0989601f1 added a | |
274 | | public |
|
312 | | public | |
275 | o 0:67145f466344 initialcommit |
|
313 | o 0:67145f466344 initialcommit | |
276 | public |
|
314 | public | |
277 |
|
315 | |||
278 | $ hg push -f |
|
316 | $ hg push -f | |
279 | pushing to $TESTTMP/repo |
|
317 | pushing to $TESTTMP/repo | |
280 | searching for changes |
|
318 | searching for changes | |
281 | storing changesets on the bundlestore |
|
319 | storing changesets on the bundlestore | |
282 | pushing 1 commit: |
|
320 | pushing 1 commit: | |
283 | 99949238d9ac added f |
|
321 | 99949238d9ac added f | |
284 |
|
322 | |||
285 | XXX: the phase should not have changed here |
|
323 | XXX: the phase should not have changed here | |
286 | $ hg glog -r . |
|
324 | $ hg glog -r . | |
287 | @ 7:99949238d9ac added f |
|
325 | @ 7:99949238d9ac added f | |
288 | | public |
|
326 | | public | |
289 | ~ |
|
327 | ~ | |
290 |
|
328 | |||
291 | Unbundling on server to see obsmarkers being applied |
|
329 | Unbundling on server to see obsmarkers being applied | |
292 |
|
330 | |||
293 | $ cd ../repo |
|
331 | $ cd ../repo | |
294 |
|
332 | |||
295 | $ scratchnodes |
|
333 | $ scratchnodes | |
296 | 1bb96358eda285b536c6d1c66846a7cdb2336cea 0a6e70ecd5b98d22382f69b93909f557ac6a9927 |
|
334 | 1bb96358eda285b536c6d1c66846a7cdb2336cea 0a6e70ecd5b98d22382f69b93909f557ac6a9927 | |
297 | 6cb0989601f1fb5805238edfb16f3606713d9a0b a4c202c147a9c4bb91bbadb56321fc5f3950f7f2 |
|
335 | 6cb0989601f1fb5805238edfb16f3606713d9a0b a4c202c147a9c4bb91bbadb56321fc5f3950f7f2 | |
298 | 99949238d9ac7f2424a33a46dface6f866afd059 090a24fe63f31d3b4bee714447f835c8c362ff57 |
|
336 | 99949238d9ac7f2424a33a46dface6f866afd059 090a24fe63f31d3b4bee714447f835c8c362ff57 | |
299 | 9b42578d44473575994109161430d65dd147d16d 0a6e70ecd5b98d22382f69b93909f557ac6a9927 |
|
337 | 9b42578d44473575994109161430d65dd147d16d 0a6e70ecd5b98d22382f69b93909f557ac6a9927 | |
300 | b4e4bce660512ad3e71189e14588a70ac8e31fef 0a6e70ecd5b98d22382f69b93909f557ac6a9927 |
|
338 | b4e4bce660512ad3e71189e14588a70ac8e31fef 0a6e70ecd5b98d22382f69b93909f557ac6a9927 | |
301 | bf8a6e3011b345146bbbedbcb1ebd4837571492a 0a6e70ecd5b98d22382f69b93909f557ac6a9927 |
|
339 | bf8a6e3011b345146bbbedbcb1ebd4837571492a 0a6e70ecd5b98d22382f69b93909f557ac6a9927 | |
302 | eaba929e866c59bc9a6aada5a9dd2f6990db83c0 0a6e70ecd5b98d22382f69b93909f557ac6a9927 |
|
340 | eaba929e866c59bc9a6aada5a9dd2f6990db83c0 0a6e70ecd5b98d22382f69b93909f557ac6a9927 | |
303 |
|
341 | |||
304 | $ hg glog |
|
342 | $ hg glog | |
305 | o 6:9b42578d4447 added f |
|
343 | o 6:9b42578d4447 added f | |
306 | | draft |
|
344 | | draft | |
307 | o 5:b4e4bce66051 added e |
|
345 | o 5:b4e4bce66051 added e | |
308 | | public |
|
346 | | public | |
309 | o 4:1bb96358eda2 added d |
|
347 | o 4:1bb96358eda2 added d | |
310 | | public |
|
348 | | public | |
311 | o 3:bf8a6e3011b3 added c |
|
349 | o 3:bf8a6e3011b3 added c | |
312 | | public |
|
350 | | public | |
313 | o 2:eaba929e866c added b |
|
351 | o 2:eaba929e866c added b | |
314 | | public |
|
352 | | public | |
315 | o 1:6cb0989601f1 added a |
|
353 | o 1:6cb0989601f1 added a | |
316 | | public |
|
354 | | public | |
317 | @ 0:67145f466344 initialcommit |
|
355 | @ 0:67145f466344 initialcommit | |
318 | public |
|
356 | public | |
319 |
|
357 | |||
320 | $ hg unbundle .hg/scratchbranches/filebundlestore/09/0a/090a24fe63f31d3b4bee714447f835c8c362ff57 |
|
358 | $ hg unbundle .hg/scratchbranches/filebundlestore/09/0a/090a24fe63f31d3b4bee714447f835c8c362ff57 | |
321 | adding changesets |
|
359 | adding changesets | |
322 | adding manifests |
|
360 | adding manifests | |
323 | adding file changes |
|
361 | adding file changes | |
324 | added 1 changesets with 0 changes to 1 files (+1 heads) |
|
362 | added 1 changesets with 0 changes to 1 files (+1 heads) | |
325 | 1 new obsolescence markers |
|
363 | 1 new obsolescence markers | |
326 | obsoleted 1 changesets |
|
364 | obsoleted 1 changesets | |
327 | new changesets 99949238d9ac |
|
365 | new changesets 99949238d9ac | |
328 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
366 | (run 'hg heads' to see heads, 'hg merge' to merge) | |
329 |
|
367 | |||
330 | $ hg glog |
|
368 | $ hg glog | |
331 | o 7:99949238d9ac added f |
|
369 | o 7:99949238d9ac added f | |
332 | | draft |
|
370 | | draft | |
333 | | o 5:b4e4bce66051 added e |
|
371 | | o 5:b4e4bce66051 added e | |
334 | | | public |
|
372 | | | public | |
335 | | o 4:1bb96358eda2 added d |
|
373 | | o 4:1bb96358eda2 added d | |
336 | |/ public |
|
374 | |/ public | |
337 | o 3:bf8a6e3011b3 added c |
|
375 | o 3:bf8a6e3011b3 added c | |
338 | | public |
|
376 | | public | |
339 | o 2:eaba929e866c added b |
|
377 | o 2:eaba929e866c added b | |
340 | | public |
|
378 | | public | |
341 | o 1:6cb0989601f1 added a |
|
379 | o 1:6cb0989601f1 added a | |
342 | | public |
|
380 | | public | |
343 | @ 0:67145f466344 initialcommit |
|
381 | @ 0:67145f466344 initialcommit | |
344 | public |
|
382 | public |
General Comments 0
You need to be logged in to leave comments.
Login now