Show More
@@ -1,419 +1,430 b'' | |||||
1 | #testcases tree flat |
|
1 | #testcases tree flat | |
2 | $ . "$TESTDIR/narrow-library.sh" |
|
2 | $ . "$TESTDIR/narrow-library.sh" | |
3 |
|
3 | |||
4 | #if tree |
|
4 | #if tree | |
5 | $ cat << EOF >> $HGRCPATH |
|
5 | $ cat << EOF >> $HGRCPATH | |
6 | > [experimental] |
|
6 | > [experimental] | |
7 | > treemanifest = 1 |
|
7 | > treemanifest = 1 | |
8 | > EOF |
|
8 | > EOF | |
9 | #endif |
|
9 | #endif | |
10 |
|
10 | |||
11 | $ hg init master |
|
11 | $ hg init master | |
12 | $ cd master |
|
12 | $ cd master | |
13 |
|
13 | |||
14 | $ mkdir inside |
|
14 | $ mkdir inside | |
15 | $ echo 'inside' > inside/f |
|
15 | $ echo 'inside' > inside/f | |
16 | $ hg add inside/f |
|
16 | $ hg add inside/f | |
17 | $ hg commit -m 'add inside' |
|
17 | $ hg commit -m 'add inside' | |
18 |
|
18 | |||
19 | $ mkdir widest |
|
19 | $ mkdir widest | |
20 | $ echo 'widest' > widest/f |
|
20 | $ echo 'widest' > widest/f | |
21 | $ hg add widest/f |
|
21 | $ hg add widest/f | |
22 | $ hg commit -m 'add widest' |
|
22 | $ hg commit -m 'add widest' | |
23 |
|
23 | |||
24 | $ mkdir outside |
|
24 | $ mkdir outside | |
25 | $ echo 'outside' > outside/f |
|
25 | $ echo 'outside' > outside/f | |
26 | $ hg add outside/f |
|
26 | $ hg add outside/f | |
27 | $ hg commit -m 'add outside' |
|
27 | $ hg commit -m 'add outside' | |
28 |
|
28 | |||
29 | $ cd .. |
|
29 | $ cd .. | |
30 |
|
30 | |||
31 | narrow clone the inside file |
|
31 | narrow clone the inside file | |
32 |
|
32 | |||
33 | $ hg clone --narrow ssh://user@dummy/master narrow |
|
33 | $ hg clone --narrow ssh://user@dummy/master narrow | |
34 | requesting all changes |
|
34 | requesting all changes | |
35 | adding changesets |
|
35 | adding changesets | |
36 | adding manifests |
|
36 | adding manifests | |
37 | adding file changes |
|
37 | adding file changes | |
38 | added 3 changesets with 0 changes to 0 files |
|
38 | added 3 changesets with 0 changes to 0 files | |
39 | new changesets *:* (glob) |
|
39 | new changesets *:* (glob) | |
40 | updating to branch default |
|
40 | updating to branch default | |
41 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
41 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
42 | $ cd narrow |
|
42 | $ cd narrow | |
43 | $ hg tracked |
|
43 | $ hg tracked | |
44 | $ hg files |
|
44 | $ hg files | |
45 | [1] |
|
45 | [1] | |
46 |
|
46 | |||
47 | widen from an empty clone |
|
47 | widen from an empty clone | |
48 |
|
48 | |||
49 | $ hg tracked --addinclude inside |
|
49 | $ hg tracked --addinclude inside | |
50 | comparing with ssh://user@dummy/master |
|
50 | comparing with ssh://user@dummy/master | |
51 | searching for changes |
|
51 | searching for changes | |
52 | adding changesets |
|
52 | adding changesets | |
53 | adding manifests |
|
53 | adding manifests | |
54 | adding file changes |
|
54 | adding file changes | |
55 | added 0 changesets with 1 changes to 1 files |
|
55 | added 0 changesets with 1 changes to 1 files | |
56 | $ hg tracked |
|
56 | $ hg tracked | |
57 | I path:inside |
|
57 | I path:inside | |
58 | $ ls |
|
58 | $ ls | |
59 | inside |
|
59 | inside | |
60 | $ cat inside/f |
|
60 | $ cat inside/f | |
61 | inside |
|
61 | inside | |
62 | $ cd .. |
|
62 | $ cd .. | |
63 |
|
63 | |||
64 | add more upstream files which we will include in a wider narrow spec |
|
64 | add more upstream files which we will include in a wider narrow spec | |
65 |
|
65 | |||
66 | $ cd master |
|
66 | $ cd master | |
67 |
|
67 | |||
68 | $ mkdir wider |
|
68 | $ mkdir wider | |
69 | $ echo 'wider' > wider/f |
|
69 | $ echo 'wider' > wider/f | |
70 | $ hg add wider/f |
|
70 | $ hg add wider/f | |
71 | $ echo 'widest v2' > widest/f |
|
71 | $ echo 'widest v2' > widest/f | |
72 | $ hg commit -m 'add wider, update widest' |
|
72 | $ hg commit -m 'add wider, update widest' | |
73 |
|
73 | |||
74 | $ echo 'widest v3' > widest/f |
|
74 | $ echo 'widest v3' > widest/f | |
75 | $ hg commit -m 'update widest v3' |
|
75 | $ hg commit -m 'update widest v3' | |
76 |
|
76 | |||
77 | $ echo 'inside v2' > inside/f |
|
77 | $ echo 'inside v2' > inside/f | |
78 | $ hg commit -m 'update inside' |
|
78 | $ hg commit -m 'update inside' | |
79 |
|
79 | |||
80 | $ mkdir outside2 |
|
80 | $ mkdir outside2 | |
81 | $ echo 'outside2' > outside2/f |
|
81 | $ echo 'outside2' > outside2/f | |
82 | $ hg add outside2/f |
|
82 | $ hg add outside2/f | |
83 | $ hg commit -m 'add outside2' |
|
83 | $ hg commit -m 'add outside2' | |
84 |
|
84 | |||
85 | $ echo 'widest v4' > widest/f |
|
85 | $ echo 'widest v4' > widest/f | |
86 | $ hg commit -m 'update widest v4' |
|
86 | $ hg commit -m 'update widest v4' | |
87 |
|
87 | |||
88 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" |
|
88 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" | |
89 | 7: update widest v4 |
|
89 | 7: update widest v4 | |
90 | 6: add outside2 |
|
90 | 6: add outside2 | |
91 | 5: update inside |
|
91 | 5: update inside | |
92 | 4: update widest v3 |
|
92 | 4: update widest v3 | |
93 | 3: add wider, update widest |
|
93 | 3: add wider, update widest | |
94 | 2: add outside |
|
94 | 2: add outside | |
95 | 1: add widest |
|
95 | 1: add widest | |
96 | 0: add inside |
|
96 | 0: add inside | |
97 |
|
97 | |||
98 | $ cd .. |
|
98 | $ cd .. | |
99 |
|
99 | |||
100 | Widen the narrow spec to see the widest file. This should not get the newly |
|
100 | Widen the narrow spec to see the widest file. This should not get the newly | |
101 | added upstream revisions. |
|
101 | added upstream revisions. | |
102 |
|
102 | |||
103 | $ cd narrow |
|
103 | $ cd narrow | |
104 | $ hg id -n |
|
104 | $ hg id -n | |
105 | 2 |
|
105 | 2 | |
106 |
|
106 | |||
107 | $ hg tracked --addinclude widest/f --debug |
|
107 | $ hg tracked --addinclude widest/f --debug | |
108 | comparing with ssh://user@dummy/master |
|
108 | comparing with ssh://user@dummy/master | |
109 | running python "*dummyssh" *user@dummy* *hg -R master serve --stdio* (glob) |
|
109 | running python "*dummyssh" *user@dummy* *hg -R master serve --stdio* (glob) | |
110 | sending hello command |
|
110 | sending hello command | |
111 | sending between command |
|
111 | sending between command | |
112 | remote: * (glob) |
|
112 | remote: * (glob) | |
113 | remote: capabilities: * (glob) |
|
113 | remote: capabilities: * (glob) | |
114 | remote: 1 |
|
114 | remote: 1 | |
115 | sending protocaps command |
|
115 | sending protocaps command | |
116 | query 1; heads |
|
116 | query 1; heads | |
117 | sending batch command |
|
117 | sending batch command | |
118 | searching for changes |
|
118 | searching for changes | |
119 | all local heads known remotely |
|
119 | all local heads known remotely | |
120 | sending narrow_widen command |
|
120 | sending narrow_widen command | |
121 | bundle2-input-bundle: with-transaction |
|
121 | bundle2-input-bundle: with-transaction | |
122 | bundle2-input-part: "changegroup" (params: * mandatory) supported (glob) |
|
122 | bundle2-input-part: "changegroup" (params: * mandatory) supported (glob) | |
123 | adding changesets |
|
123 | adding changesets | |
124 | adding manifests |
|
124 | adding manifests | |
125 | adding widest/ revisions (tree !) |
|
125 | adding widest/ revisions (tree !) | |
126 | adding file changes |
|
126 | adding file changes | |
127 | adding widest/f revisions (tree !) |
|
127 | adding widest/f revisions (tree !) | |
128 | added 0 changesets with 1 changes to 1 files |
|
128 | added 0 changesets with 1 changes to 1 files | |
129 | bundle2-input-part: total payload size * (glob) |
|
129 | bundle2-input-part: total payload size * (glob) | |
130 | bundle2-input-bundle: 0 parts total |
|
130 | bundle2-input-bundle: 0 parts total | |
131 | widest/f: add from widened narrow clone -> g |
|
131 | widest/f: add from widened narrow clone -> g | |
132 | getting widest/f |
|
132 | getting widest/f | |
133 | $ hg tracked |
|
133 | $ hg tracked | |
134 | I path:inside |
|
134 | I path:inside | |
135 | I path:widest/f |
|
135 | I path:widest/f | |
136 |
|
136 | |||
137 | $ cat widest/f |
|
137 | $ cat widest/f | |
138 | widest |
|
138 | widest | |
139 |
|
139 | |||
140 | $ hg id -n |
|
140 | $ hg id -n | |
141 | 2 |
|
141 | 2 | |
142 |
|
142 | |||
|
143 | Test that extending already included files should not call narrow_widen | |||
|
144 | wireprotocol command | |||
|
145 | ||||
|
146 | $ hg tracked --addinclude widest/f | |||
|
147 | comparing with ssh://user@dummy/master | |||
|
148 | searching for changes | |||
|
149 | adding changesets | |||
|
150 | adding manifests | |||
|
151 | adding file changes | |||
|
152 | added 0 changesets with 0 changes to 0 files | |||
|
153 | ||||
143 | Pull down the newly added upstream revision. |
|
154 | Pull down the newly added upstream revision. | |
144 |
|
155 | |||
145 | $ hg pull |
|
156 | $ hg pull | |
146 | pulling from ssh://user@dummy/master |
|
157 | pulling from ssh://user@dummy/master | |
147 | searching for changes |
|
158 | searching for changes | |
148 | adding changesets |
|
159 | adding changesets | |
149 | adding manifests |
|
160 | adding manifests | |
150 | adding file changes |
|
161 | adding file changes | |
151 | added 5 changesets with 4 changes to 2 files |
|
162 | added 5 changesets with 4 changes to 2 files | |
152 | new changesets *:* (glob) |
|
163 | new changesets *:* (glob) | |
153 | (run 'hg update' to get a working copy) |
|
164 | (run 'hg update' to get a working copy) | |
154 | $ hg update -r 'desc("add wider")' |
|
165 | $ hg update -r 'desc("add wider")' | |
155 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
166 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
156 |
|
167 | |||
157 | $ cat widest/f |
|
168 | $ cat widest/f | |
158 | widest v2 |
|
169 | widest v2 | |
159 |
|
170 | |||
160 | $ hg update -r 'desc("update inside")' |
|
171 | $ hg update -r 'desc("update inside")' | |
161 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
172 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
162 | $ cat widest/f |
|
173 | $ cat widest/f | |
163 | widest v3 |
|
174 | widest v3 | |
164 | $ cat inside/f |
|
175 | $ cat inside/f | |
165 | inside v2 |
|
176 | inside v2 | |
166 |
|
177 | |||
167 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" |
|
178 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" | |
168 | 7: update widest v4 |
|
179 | 7: update widest v4 | |
169 | 6: add outside2 |
|
180 | 6: add outside2 | |
170 | 5: update inside |
|
181 | 5: update inside | |
171 | 4: update widest v3 |
|
182 | 4: update widest v3 | |
172 | 3: add wider, update widest |
|
183 | 3: add wider, update widest | |
173 | 2: add outside |
|
184 | 2: add outside | |
174 | 1: add widest |
|
185 | 1: add widest | |
175 | 0: add inside |
|
186 | 0: add inside | |
176 |
|
187 | |||
177 | Check that widening with a newline fails |
|
188 | Check that widening with a newline fails | |
178 |
|
189 | |||
179 | $ hg tracked --addinclude 'widest |
|
190 | $ hg tracked --addinclude 'widest | |
180 | > ' |
|
191 | > ' | |
181 | abort: newlines are not allowed in narrowspec paths |
|
192 | abort: newlines are not allowed in narrowspec paths | |
182 | [255] |
|
193 | [255] | |
183 |
|
194 | |||
184 | widen the narrow spec to include the wider file |
|
195 | widen the narrow spec to include the wider file | |
185 |
|
196 | |||
186 | $ hg tracked --addinclude wider |
|
197 | $ hg tracked --addinclude wider | |
187 | comparing with ssh://user@dummy/master |
|
198 | comparing with ssh://user@dummy/master | |
188 | searching for changes |
|
199 | searching for changes | |
189 | adding changesets |
|
200 | adding changesets | |
190 | adding manifests |
|
201 | adding manifests | |
191 | adding file changes |
|
202 | adding file changes | |
192 | added 0 changesets with 1 changes to 1 files |
|
203 | added 0 changesets with 1 changes to 1 files | |
193 | $ hg tracked |
|
204 | $ hg tracked | |
194 | I path:inside |
|
205 | I path:inside | |
195 | I path:wider |
|
206 | I path:wider | |
196 | I path:widest/f |
|
207 | I path:widest/f | |
197 | $ hg update 'desc("add widest")' |
|
208 | $ hg update 'desc("add widest")' | |
198 | 2 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
209 | 2 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
199 | $ cat widest/f |
|
210 | $ cat widest/f | |
200 | widest |
|
211 | widest | |
201 | $ hg update 'desc("add wider, update widest")' |
|
212 | $ hg update 'desc("add wider, update widest")' | |
202 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
213 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
203 | $ cat wider/f |
|
214 | $ cat wider/f | |
204 | wider |
|
215 | wider | |
205 | $ cat widest/f |
|
216 | $ cat widest/f | |
206 | widest v2 |
|
217 | widest v2 | |
207 | $ hg update 'desc("update widest v3")' |
|
218 | $ hg update 'desc("update widest v3")' | |
208 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
219 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
209 | $ cat widest/f |
|
220 | $ cat widest/f | |
210 | widest v3 |
|
221 | widest v3 | |
211 | $ hg update 'desc("update widest v4")' |
|
222 | $ hg update 'desc("update widest v4")' | |
212 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
223 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
213 | $ cat widest/f |
|
224 | $ cat widest/f | |
214 | widest v4 |
|
225 | widest v4 | |
215 |
|
226 | |||
216 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" |
|
227 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" | |
217 | 7: update widest v4 |
|
228 | 7: update widest v4 | |
218 | 6: add outside2 |
|
229 | 6: add outside2 | |
219 | 5: update inside |
|
230 | 5: update inside | |
220 | 4: update widest v3 |
|
231 | 4: update widest v3 | |
221 | 3: add wider, update widest |
|
232 | 3: add wider, update widest | |
222 | 2: add outside |
|
233 | 2: add outside | |
223 | 1: add widest |
|
234 | 1: add widest | |
224 | 0: add inside |
|
235 | 0: add inside | |
225 |
|
236 | |||
226 | separate suite of tests: files from 0-10 modified in changes 0-10. This allows |
|
237 | separate suite of tests: files from 0-10 modified in changes 0-10. This allows | |
227 | more obvious precise tests tickling particular corner cases. |
|
238 | more obvious precise tests tickling particular corner cases. | |
228 |
|
239 | |||
229 | $ cd .. |
|
240 | $ cd .. | |
230 | $ hg init upstream |
|
241 | $ hg init upstream | |
231 | $ cd upstream |
|
242 | $ cd upstream | |
232 | $ for x in `$TESTDIR/seq.py 0 10` |
|
243 | $ for x in `$TESTDIR/seq.py 0 10` | |
233 | > do |
|
244 | > do | |
234 | > mkdir d$x |
|
245 | > mkdir d$x | |
235 | > echo $x > d$x/f |
|
246 | > echo $x > d$x/f | |
236 | > hg add d$x/f |
|
247 | > hg add d$x/f | |
237 | > hg commit -m "add d$x/f" |
|
248 | > hg commit -m "add d$x/f" | |
238 | > done |
|
249 | > done | |
239 | $ hg log -T "{rev}: {desc}\n" |
|
250 | $ hg log -T "{rev}: {desc}\n" | |
240 | 10: add d10/f |
|
251 | 10: add d10/f | |
241 | 9: add d9/f |
|
252 | 9: add d9/f | |
242 | 8: add d8/f |
|
253 | 8: add d8/f | |
243 | 7: add d7/f |
|
254 | 7: add d7/f | |
244 | 6: add d6/f |
|
255 | 6: add d6/f | |
245 | 5: add d5/f |
|
256 | 5: add d5/f | |
246 | 4: add d4/f |
|
257 | 4: add d4/f | |
247 | 3: add d3/f |
|
258 | 3: add d3/f | |
248 | 2: add d2/f |
|
259 | 2: add d2/f | |
249 | 1: add d1/f |
|
260 | 1: add d1/f | |
250 | 0: add d0/f |
|
261 | 0: add d0/f | |
251 |
|
262 | |||
252 | make narrow clone with every third node. |
|
263 | make narrow clone with every third node. | |
253 |
|
264 | |||
254 | $ cd .. |
|
265 | $ cd .. | |
255 | $ hg clone --narrow ssh://user@dummy/upstream narrow2 --include d0 --include d3 --include d6 --include d9 |
|
266 | $ hg clone --narrow ssh://user@dummy/upstream narrow2 --include d0 --include d3 --include d6 --include d9 | |
256 | requesting all changes |
|
267 | requesting all changes | |
257 | adding changesets |
|
268 | adding changesets | |
258 | adding manifests |
|
269 | adding manifests | |
259 | adding file changes |
|
270 | adding file changes | |
260 | added 11 changesets with 4 changes to 4 files |
|
271 | added 11 changesets with 4 changes to 4 files | |
261 | new changesets *:* (glob) |
|
272 | new changesets *:* (glob) | |
262 | updating to branch default |
|
273 | updating to branch default | |
263 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
274 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
264 | $ cd narrow2 |
|
275 | $ cd narrow2 | |
265 | $ hg tracked |
|
276 | $ hg tracked | |
266 | I path:d0 |
|
277 | I path:d0 | |
267 | I path:d3 |
|
278 | I path:d3 | |
268 | I path:d6 |
|
279 | I path:d6 | |
269 | I path:d9 |
|
280 | I path:d9 | |
270 | $ hg verify |
|
281 | $ hg verify | |
271 | checking changesets |
|
282 | checking changesets | |
272 | checking manifests |
|
283 | checking manifests | |
273 | checking directory manifests (tree !) |
|
284 | checking directory manifests (tree !) | |
274 | crosschecking files in changesets and manifests |
|
285 | crosschecking files in changesets and manifests | |
275 | checking files |
|
286 | checking files | |
276 | checked 11 changesets with 4 changes to 4 files |
|
287 | checked 11 changesets with 4 changes to 4 files | |
277 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" |
|
288 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" | |
278 | 10: add d10/f |
|
289 | 10: add d10/f | |
279 | 9: add d9/f |
|
290 | 9: add d9/f | |
280 | 8: add d8/f |
|
291 | 8: add d8/f | |
281 | 7: add d7/f |
|
292 | 7: add d7/f | |
282 | 6: add d6/f |
|
293 | 6: add d6/f | |
283 | 5: add d5/f |
|
294 | 5: add d5/f | |
284 | 4: add d4/f |
|
295 | 4: add d4/f | |
285 | 3: add d3/f |
|
296 | 3: add d3/f | |
286 | 2: add d2/f |
|
297 | 2: add d2/f | |
287 | 1: add d1/f |
|
298 | 1: add d1/f | |
288 | 0: add d0/f |
|
299 | 0: add d0/f | |
289 | $ hg tracked --addinclude d1 |
|
300 | $ hg tracked --addinclude d1 | |
290 | comparing with ssh://user@dummy/upstream |
|
301 | comparing with ssh://user@dummy/upstream | |
291 | searching for changes |
|
302 | searching for changes | |
292 | adding changesets |
|
303 | adding changesets | |
293 | adding manifests |
|
304 | adding manifests | |
294 | adding file changes |
|
305 | adding file changes | |
295 | added 0 changesets with 1 changes to 1 files |
|
306 | added 0 changesets with 1 changes to 1 files | |
296 | $ hg tracked |
|
307 | $ hg tracked | |
297 | I path:d0 |
|
308 | I path:d0 | |
298 | I path:d1 |
|
309 | I path:d1 | |
299 | I path:d3 |
|
310 | I path:d3 | |
300 | I path:d6 |
|
311 | I path:d6 | |
301 | I path:d9 |
|
312 | I path:d9 | |
302 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" |
|
313 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" | |
303 | 10: add d10/f |
|
314 | 10: add d10/f | |
304 | 9: add d9/f |
|
315 | 9: add d9/f | |
305 | 8: add d8/f |
|
316 | 8: add d8/f | |
306 | 7: add d7/f |
|
317 | 7: add d7/f | |
307 | 6: add d6/f |
|
318 | 6: add d6/f | |
308 | 5: add d5/f |
|
319 | 5: add d5/f | |
309 | 4: add d4/f |
|
320 | 4: add d4/f | |
310 | 3: add d3/f |
|
321 | 3: add d3/f | |
311 | 2: add d2/f |
|
322 | 2: add d2/f | |
312 | 1: add d1/f |
|
323 | 1: add d1/f | |
313 | 0: add d0/f |
|
324 | 0: add d0/f | |
314 |
|
325 | |||
315 | Verify shouldn't claim the repo is corrupt after a widen. |
|
326 | Verify shouldn't claim the repo is corrupt after a widen. | |
316 |
|
327 | |||
317 | $ hg verify |
|
328 | $ hg verify | |
318 | checking changesets |
|
329 | checking changesets | |
319 | checking manifests |
|
330 | checking manifests | |
320 | checking directory manifests (tree !) |
|
331 | checking directory manifests (tree !) | |
321 | crosschecking files in changesets and manifests |
|
332 | crosschecking files in changesets and manifests | |
322 | checking files |
|
333 | checking files | |
323 | checked 11 changesets with 5 changes to 5 files |
|
334 | checked 11 changesets with 5 changes to 5 files | |
324 |
|
335 | |||
325 | Widening preserves parent of local commit |
|
336 | Widening preserves parent of local commit | |
326 |
|
337 | |||
327 | $ cd .. |
|
338 | $ cd .. | |
328 | $ hg clone -q --narrow ssh://user@dummy/upstream narrow3 --include d2 -r 2 |
|
339 | $ hg clone -q --narrow ssh://user@dummy/upstream narrow3 --include d2 -r 2 | |
329 | $ cd narrow3 |
|
340 | $ cd narrow3 | |
330 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" |
|
341 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" | |
331 | 2: add d2/f |
|
342 | 2: add d2/f | |
332 | 1: add d1/f |
|
343 | 1: add d1/f | |
333 | 0: add d0/f |
|
344 | 0: add d0/f | |
334 | $ hg pull -q -r 3 |
|
345 | $ hg pull -q -r 3 | |
335 | $ hg co -q tip |
|
346 | $ hg co -q tip | |
336 | $ hg pull -q -r 4 |
|
347 | $ hg pull -q -r 4 | |
337 | $ echo local > d2/f |
|
348 | $ echo local > d2/f | |
338 | $ hg ci -m local |
|
349 | $ hg ci -m local | |
339 | created new head |
|
350 | created new head | |
340 | $ hg tracked -q --addinclude d0 --addinclude d9 |
|
351 | $ hg tracked -q --addinclude d0 --addinclude d9 | |
341 |
|
352 | |||
342 | Widening preserves bookmarks |
|
353 | Widening preserves bookmarks | |
343 |
|
354 | |||
344 | $ cd .. |
|
355 | $ cd .. | |
345 | $ hg clone -q --narrow ssh://user@dummy/upstream narrow-bookmarks --include d4 |
|
356 | $ hg clone -q --narrow ssh://user@dummy/upstream narrow-bookmarks --include d4 | |
346 | $ cd narrow-bookmarks |
|
357 | $ cd narrow-bookmarks | |
347 | $ echo local > d4/f |
|
358 | $ echo local > d4/f | |
348 | $ hg ci -m local |
|
359 | $ hg ci -m local | |
349 | $ hg bookmarks bookmark |
|
360 | $ hg bookmarks bookmark | |
350 | $ hg bookmarks |
|
361 | $ hg bookmarks | |
351 | * bookmark 11:* (glob) |
|
362 | * bookmark 11:* (glob) | |
352 | $ hg -q tracked --addinclude d2 |
|
363 | $ hg -q tracked --addinclude d2 | |
353 | $ hg bookmarks |
|
364 | $ hg bookmarks | |
354 | * bookmark 11:* (glob) |
|
365 | * bookmark 11:* (glob) | |
355 | $ hg log -r bookmark -T '{desc}\n' |
|
366 | $ hg log -r bookmark -T '{desc}\n' | |
356 | local |
|
367 | local | |
357 |
|
368 | |||
358 | Widening that fails can be recovered from |
|
369 | Widening that fails can be recovered from | |
359 |
|
370 | |||
360 | $ cd .. |
|
371 | $ cd .. | |
361 | $ hg clone -q --narrow ssh://user@dummy/upstream interrupted --include d0 |
|
372 | $ hg clone -q --narrow ssh://user@dummy/upstream interrupted --include d0 | |
362 | $ cd interrupted |
|
373 | $ cd interrupted | |
363 | $ echo local > d0/f |
|
374 | $ echo local > d0/f | |
364 | $ hg ci -m local |
|
375 | $ hg ci -m local | |
365 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" |
|
376 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" | |
366 | 11: local |
|
377 | 11: local | |
367 | 10: add d10/f |
|
378 | 10: add d10/f | |
368 | 9: add d9/f |
|
379 | 9: add d9/f | |
369 | 8: add d8/f |
|
380 | 8: add d8/f | |
370 | 7: add d7/f |
|
381 | 7: add d7/f | |
371 | 6: add d6/f |
|
382 | 6: add d6/f | |
372 | 5: add d5/f |
|
383 | 5: add d5/f | |
373 | 4: add d4/f |
|
384 | 4: add d4/f | |
374 | 3: add d3/f |
|
385 | 3: add d3/f | |
375 | 2: add d2/f |
|
386 | 2: add d2/f | |
376 | 1: add d1/f |
|
387 | 1: add d1/f | |
377 | 0: add d0/f |
|
388 | 0: add d0/f | |
378 | $ hg bookmarks bookmark |
|
389 | $ hg bookmarks bookmark | |
379 | $ hg --config hooks.pretxnchangegroup.bad=false tracked --addinclude d1 |
|
390 | $ hg --config hooks.pretxnchangegroup.bad=false tracked --addinclude d1 | |
380 | comparing with ssh://user@dummy/upstream |
|
391 | comparing with ssh://user@dummy/upstream | |
381 | searching for changes |
|
392 | searching for changes | |
382 | adding changesets |
|
393 | adding changesets | |
383 | adding manifests |
|
394 | adding manifests | |
384 | adding file changes |
|
395 | adding file changes | |
385 | added 0 changesets with 1 changes to 1 files |
|
396 | added 0 changesets with 1 changes to 1 files | |
386 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" |
|
397 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" | |
387 | 11: local |
|
398 | 11: local | |
388 | 10: add d10/f |
|
399 | 10: add d10/f | |
389 | 9: add d9/f |
|
400 | 9: add d9/f | |
390 | 8: add d8/f |
|
401 | 8: add d8/f | |
391 | 7: add d7/f |
|
402 | 7: add d7/f | |
392 | 6: add d6/f |
|
403 | 6: add d6/f | |
393 | 5: add d5/f |
|
404 | 5: add d5/f | |
394 | 4: add d4/f |
|
405 | 4: add d4/f | |
395 | 3: add d3/f |
|
406 | 3: add d3/f | |
396 | 2: add d2/f |
|
407 | 2: add d2/f | |
397 | 1: add d1/f |
|
408 | 1: add d1/f | |
398 | 0: add d0/f |
|
409 | 0: add d0/f | |
399 | $ hg bookmarks |
|
410 | $ hg bookmarks | |
400 | * bookmark 11:* (glob) |
|
411 | * bookmark 11:* (glob) | |
401 | $ hg unbundle .hg/strip-backup/*-widen.hg |
|
412 | $ hg unbundle .hg/strip-backup/*-widen.hg | |
402 | abort: .hg/strip-backup/*-widen.hg: $ENOTDIR$ (windows !) |
|
413 | abort: .hg/strip-backup/*-widen.hg: $ENOTDIR$ (windows !) | |
403 | abort: $ENOENT$: .hg/strip-backup/*-widen.hg (no-windows !) |
|
414 | abort: $ENOENT$: .hg/strip-backup/*-widen.hg (no-windows !) | |
404 | [255] |
|
415 | [255] | |
405 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" |
|
416 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" | |
406 | 11: local |
|
417 | 11: local | |
407 | 10: add d10/f |
|
418 | 10: add d10/f | |
408 | 9: add d9/f |
|
419 | 9: add d9/f | |
409 | 8: add d8/f |
|
420 | 8: add d8/f | |
410 | 7: add d7/f |
|
421 | 7: add d7/f | |
411 | 6: add d6/f |
|
422 | 6: add d6/f | |
412 | 5: add d5/f |
|
423 | 5: add d5/f | |
413 | 4: add d4/f |
|
424 | 4: add d4/f | |
414 | 3: add d3/f |
|
425 | 3: add d3/f | |
415 | 2: add d2/f |
|
426 | 2: add d2/f | |
416 | 1: add d1/f |
|
427 | 1: add d1/f | |
417 | 0: add d0/f |
|
428 | 0: add d0/f | |
418 | $ hg bookmarks |
|
429 | $ hg bookmarks | |
419 | * bookmark 11:* (glob) |
|
430 | * bookmark 11:* (glob) |
General Comments 0
You need to be logged in to leave comments.
Login now