Show More
@@ -72,15 +72,15 b' add more upstream files which we will in' | |||||
72 | $ echo 'widest v4' > widest/f |
|
72 | $ echo 'widest v4' > widest/f | |
73 | $ hg commit -m 'update widest v4' |
|
73 | $ hg commit -m 'update widest v4' | |
74 |
|
74 | |||
75 |
$ hg log -T "{if(ellipsis, '...')}{ |
|
75 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" | |
76 |
|
|
76 | 7: update widest v4 | |
77 |
|
|
77 | 6: add outside2 | |
78 |
|
|
78 | 5: update inside | |
79 |
|
|
79 | 4: update widest v3 | |
80 |
|
|
80 | 3: add wider, update widest | |
81 |
|
|
81 | 2: add outside | |
82 |
|
|
82 | 1: add widest | |
83 |
|
|
83 | 0: add inside | |
84 |
|
84 | |||
85 |
$ |
|
85 | $ cd .. | |
86 |
|
86 | |||
@@ -124,15 +124,15 b' Pull down the newly added upstream revis' | |||||
124 | $ cat inside/f |
|
124 | $ cat inside/f | |
125 | inside v2 |
|
125 | inside v2 | |
126 |
|
126 | |||
127 |
$ hg log -T "{if(ellipsis, '...')}{ |
|
127 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" | |
128 |
|
|
128 | 7: update widest v4 | |
129 |
|
|
129 | 6: add outside2 | |
130 |
|
|
130 | 5: update inside | |
131 |
|
|
131 | 4: update widest v3 | |
132 |
|
|
132 | 3: add wider, update widest | |
133 |
|
|
133 | 2: add outside | |
134 |
|
|
134 | 1: add widest | |
135 |
|
|
135 | 0: add inside | |
136 |
|
136 | |||
137 | Check that widening with a newline fails |
|
137 | Check that widening with a newline fails | |
138 |
|
138 | |||
@@ -175,15 +175,15 b' widen the narrow spec to include the wid' | |||||
175 | $ cat widest/f |
|
175 | $ cat widest/f | |
176 | widest v4 |
|
176 | widest v4 | |
177 |
|
177 | |||
178 |
$ hg log -T "{if(ellipsis, '...')}{ |
|
178 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" | |
179 |
|
|
179 | 7: update widest v4 | |
180 |
|
|
180 | 6: add outside2 | |
181 |
|
|
181 | 5: update inside | |
182 |
|
|
182 | 4: update widest v3 | |
183 |
|
|
183 | 3: add wider, update widest | |
184 |
|
|
184 | 2: add outside | |
185 |
|
|
185 | 1: add widest | |
186 |
|
|
186 | 0: add inside | |
187 |
|
187 | |||
188 | separate suite of tests: files from 0-10 modified in changes 0-10. This allows |
|
188 | separate suite of tests: files from 0-10 modified in changes 0-10. This allows | |
189 | more obvious precise tests tickling particular corner cases. |
|
189 | more obvious precise tests tickling particular corner cases. | |
@@ -198,18 +198,18 b' more obvious precise tests tickling part' | |||||
198 | > hg add d$x/f |
|
198 | > hg add d$x/f | |
199 | > hg commit -m "add d$x/f" |
|
199 | > hg commit -m "add d$x/f" | |
200 | > done |
|
200 | > done | |
201 |
$ hg log -T "{ |
|
201 | $ hg log -T "{rev}: {desc}\n" | |
202 |
|
|
202 | 10: add d10/f | |
203 |
|
|
203 | 9: add d9/f | |
204 |
|
|
204 | 8: add d8/f | |
205 |
|
|
205 | 7: add d7/f | |
206 |
|
|
206 | 6: add d6/f | |
207 |
|
|
207 | 5: add d5/f | |
208 |
|
|
208 | 4: add d4/f | |
209 |
|
|
209 | 3: add d3/f | |
210 |
|
|
210 | 2: add d2/f | |
211 |
|
|
211 | 1: add d1/f | |
212 |
|
|
212 | 0: add d0/f | |
213 |
|
213 | |||
214 | make narrow clone with every third node. |
|
214 | make narrow clone with every third node. | |
215 |
|
215 | |||
@@ -236,18 +236,18 b' make narrow clone with every third node.' | |||||
236 | crosschecking files in changesets and manifests |
|
236 | crosschecking files in changesets and manifests | |
237 | checking files |
|
237 | checking files | |
238 | 4 files, 11 changesets, 4 total revisions |
|
238 | 4 files, 11 changesets, 4 total revisions | |
239 |
$ hg log -T "{if(ellipsis, '...')}{ |
|
239 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" | |
240 |
|
|
240 | 10: add d10/f | |
241 |
|
|
241 | 9: add d9/f | |
242 |
|
|
242 | 8: add d8/f | |
243 |
|
|
243 | 7: add d7/f | |
244 |
|
|
244 | 6: add d6/f | |
245 |
|
|
245 | 5: add d5/f | |
246 |
|
|
246 | 4: add d4/f | |
247 |
|
|
247 | 3: add d3/f | |
248 |
|
|
248 | 2: add d2/f | |
249 |
|
|
249 | 1: add d1/f | |
250 |
|
|
250 | 0: add d0/f | |
251 | $ hg tracked --addinclude d1 |
|
251 | $ hg tracked --addinclude d1 | |
252 | comparing with ssh://user@dummy/upstream |
|
252 | comparing with ssh://user@dummy/upstream | |
253 | searching for changes |
|
253 | searching for changes | |
@@ -263,18 +263,18 b' make narrow clone with every third node.' | |||||
263 | I path:d3 |
|
263 | I path:d3 | |
264 | I path:d6 |
|
264 | I path:d6 | |
265 | I path:d9 |
|
265 | I path:d9 | |
266 |
$ hg log -T "{if(ellipsis, '...')}{ |
|
266 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" | |
267 |
|
|
267 | 10: add d10/f | |
268 |
|
|
268 | 9: add d9/f | |
269 |
|
|
269 | 8: add d8/f | |
270 |
|
|
270 | 7: add d7/f | |
271 |
|
|
271 | 6: add d6/f | |
272 |
|
|
272 | 5: add d5/f | |
273 |
|
|
273 | 4: add d4/f | |
274 |
|
|
274 | 3: add d3/f | |
275 |
|
|
275 | 2: add d2/f | |
276 |
|
|
276 | 1: add d1/f | |
277 |
|
|
277 | 0: add d0/f | |
278 |
|
278 | |||
279 | Verify shouldn't claim the repo is corrupt after a widen. |
|
279 | Verify shouldn't claim the repo is corrupt after a widen. | |
280 |
|
280 | |||
@@ -291,10 +291,10 b' Widening preserves parent of local commi' | |||||
291 | $ cd .. |
|
291 | $ cd .. | |
292 | $ hg clone -q --narrow ssh://user@dummy/upstream narrow3 --include d2 -r 2 |
|
292 | $ hg clone -q --narrow ssh://user@dummy/upstream narrow3 --include d2 -r 2 | |
293 | $ cd narrow3 |
|
293 | $ cd narrow3 | |
294 |
$ hg log -T "{if(ellipsis, '...')}{ |
|
294 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" | |
295 |
|
|
295 | 2: add d2/f | |
296 |
|
|
296 | 1: add d1/f | |
297 |
|
|
297 | 0: add d0/f | |
298 | $ hg pull -q -r 3 |
|
298 | $ hg pull -q -r 3 | |
299 | $ hg co -q tip |
|
299 | $ hg co -q tip | |
300 | $ hg pull -q -r 4 |
|
300 | $ hg pull -q -r 4 |
@@ -76,15 +76,15 b' add more upstream files which we will in' | |||||
76 | $ echo 'widest v4' > widest/f |
|
76 | $ echo 'widest v4' > widest/f | |
77 | $ hg commit -m 'update widest v4' |
|
77 | $ hg commit -m 'update widest v4' | |
78 |
|
78 | |||
79 |
$ hg log -T "{if(ellipsis, '...')}{ |
|
79 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" | |
80 |
|
|
80 | 7: update widest v4 | |
81 |
|
|
81 | 6: add outside2 | |
82 |
|
|
82 | 5: update inside | |
83 |
|
|
83 | 4: update widest v3 | |
84 |
|
|
84 | 3: add wider, update widest | |
85 |
|
|
85 | 2: add outside | |
86 |
|
|
86 | 1: add widest | |
87 |
|
|
87 | 0: add inside | |
88 |
|
88 | |||
89 |
$ |
|
89 | $ cd .. | |
90 |
|
90 | |||
@@ -129,13 +129,13 b' Pull down the newly added upstream revis' | |||||
129 | $ cat inside/f |
|
129 | $ cat inside/f | |
130 | inside v2 |
|
130 | inside v2 | |
131 |
|
131 | |||
132 |
$ hg log -T "{if(ellipsis, '...')}{ |
|
132 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" | |
133 |
... |
|
133 | ...5: update widest v4 | |
134 |
|
|
134 | 4: update inside | |
135 |
... |
|
135 | ...3: update widest v3 | |
136 |
|
|
136 | 2: add wider, update widest | |
137 |
... |
|
137 | ...1: add outside | |
138 |
|
|
138 | 0: add inside | |
139 |
|
139 | |||
140 | Check that widening with a newline fails |
|
140 | Check that widening with a newline fails | |
141 |
|
141 | |||
@@ -179,15 +179,15 b' widen the narrow spec to include the wid' | |||||
179 | $ cat widest/f |
|
179 | $ cat widest/f | |
180 | widest v4 |
|
180 | widest v4 | |
181 |
|
181 | |||
182 |
$ hg log -T "{if(ellipsis, '...')}{ |
|
182 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" | |
183 |
|
|
183 | 7: update widest v4 | |
184 |
... |
|
184 | ...6: add outside2 | |
185 |
|
|
185 | 5: update inside | |
186 |
|
|
186 | 4: update widest v3 | |
187 |
|
|
187 | 3: add wider, update widest | |
188 |
... |
|
188 | ...2: add outside | |
189 |
|
|
189 | 1: add widest | |
190 |
|
|
190 | 0: add inside | |
191 |
|
191 | |||
192 | separate suite of tests: files from 0-10 modified in changes 0-10. This allows |
|
192 | separate suite of tests: files from 0-10 modified in changes 0-10. This allows | |
193 | more obvious precise tests tickling particular corner cases. |
|
193 | more obvious precise tests tickling particular corner cases. | |
@@ -206,18 +206,18 b' more obvious precise tests tickling part' | |||||
206 | > hg add d$x/f |
|
206 | > hg add d$x/f | |
207 | > hg commit -m "add d$x/f" |
|
207 | > hg commit -m "add d$x/f" | |
208 | > done |
|
208 | > done | |
209 |
$ hg log -T "{ |
|
209 | $ hg log -T "{rev}: {desc}\n" | |
210 |
|
|
210 | 10: add d10/f | |
211 |
|
|
211 | 9: add d9/f | |
212 |
|
|
212 | 8: add d8/f | |
213 |
|
|
213 | 7: add d7/f | |
214 |
|
|
214 | 6: add d6/f | |
215 |
|
|
215 | 5: add d5/f | |
216 |
|
|
216 | 4: add d4/f | |
217 |
|
|
217 | 3: add d3/f | |
218 |
|
|
218 | 2: add d2/f | |
219 |
|
|
219 | 1: add d1/f | |
220 |
|
|
220 | 0: add d0/f | |
221 |
|
221 | |||
222 | make narrow clone with every third node. |
|
222 | make narrow clone with every third node. | |
223 |
|
223 | |||
@@ -244,15 +244,15 b' make narrow clone with every third node.' | |||||
244 | crosschecking files in changesets and manifests |
|
244 | crosschecking files in changesets and manifests | |
245 | checking files |
|
245 | checking files | |
246 | 4 files, 8 changesets, 4 total revisions |
|
246 | 4 files, 8 changesets, 4 total revisions | |
247 |
$ hg log -T "{if(ellipsis, '...')}{ |
|
247 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" | |
248 |
... |
|
248 | ...7: add d10/f | |
249 |
|
|
249 | 6: add d9/f | |
250 |
... |
|
250 | ...5: add d8/f | |
251 |
|
|
251 | 4: add d6/f | |
252 |
... |
|
252 | ...3: add d5/f | |
253 |
|
|
253 | 2: add d3/f | |
254 |
... |
|
254 | ...1: add d2/f | |
255 |
|
|
255 | 0: add d0/f | |
256 | $ hg tracked --addinclude d1 |
|
256 | $ hg tracked --addinclude d1 | |
257 | comparing with ssh://user@dummy/upstream |
|
257 | comparing with ssh://user@dummy/upstream | |
258 | searching for changes |
|
258 | searching for changes | |
@@ -269,16 +269,16 b' make narrow clone with every third node.' | |||||
269 | I path:d3 |
|
269 | I path:d3 | |
270 | I path:d6 |
|
270 | I path:d6 | |
271 | I path:d9 |
|
271 | I path:d9 | |
272 |
$ hg log -T "{if(ellipsis, '...')}{ |
|
272 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" | |
273 |
... |
|
273 | ...8: add d10/f | |
274 |
|
|
274 | 7: add d9/f | |
275 |
... |
|
275 | ...6: add d8/f | |
276 |
|
|
276 | 5: add d6/f | |
277 |
... |
|
277 | ...4: add d5/f | |
278 |
|
|
278 | 3: add d3/f | |
279 |
... |
|
279 | ...2: add d2/f | |
280 |
|
|
280 | 1: add d1/f | |
281 |
|
|
281 | 0: add d0/f | |
282 |
|
282 | |||
283 | Verify shouldn't claim the repo is corrupt after a widen. |
|
283 | Verify shouldn't claim the repo is corrupt after a widen. | |
284 |
|
284 | |||
@@ -295,9 +295,9 b' Widening preserves parent of local commi' | |||||
295 | $ cd .. |
|
295 | $ cd .. | |
296 | $ hg clone -q --narrow ssh://user@dummy/upstream narrow3 --include d2 -r 2 |
|
296 | $ hg clone -q --narrow ssh://user@dummy/upstream narrow3 --include d2 -r 2 | |
297 | $ cd narrow3 |
|
297 | $ cd narrow3 | |
298 |
$ hg log -T "{if(ellipsis, '...')}{ |
|
298 | $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n" | |
299 |
|
|
299 | 1: add d2/f | |
300 |
... |
|
300 | ...0: add d1/f | |
301 | $ hg pull -q -r 3 |
|
301 | $ hg pull -q -r 3 | |
302 | $ hg co -q tip |
|
302 | $ hg co -q tip | |
303 | $ hg pull -q -r 4 |
|
303 | $ hg pull -q -r 4 |
@@ -22,18 +22,18 b'' | |||||
22 | > hg add d$x/f |
|
22 | > hg add d$x/f | |
23 | > hg commit -m "add d$x/f" |
|
23 | > hg commit -m "add d$x/f" | |
24 | > done |
|
24 | > done | |
25 |
$ hg log -T "{ |
|
25 | $ hg log -T "{rev}: {desc}\n" | |
26 |
|
|
26 | 10: add d10/f | |
27 |
|
|
27 | 9: add d9/f | |
28 |
|
|
28 | 8: add d8/f | |
29 |
|
|
29 | 7: add d7/f | |
30 |
|
|
30 | 6: add d6/f | |
31 |
|
|
31 | 5: add d5/f | |
32 |
|
|
32 | 4: add d4/f | |
33 |
|
|
33 | 3: add d3/f | |
34 |
|
|
34 | 2: add d2/f | |
35 |
|
|
35 | 1: add d1/f | |
36 |
|
|
36 | 0: add d0/f | |
37 | $ cd .. |
|
37 | $ cd .. | |
38 |
|
38 | |||
39 | Error if '.' or '..' are in the directory to track. |
|
39 | Error if '.' or '..' are in the directory to track. | |
@@ -111,15 +111,15 b' Check that nothing was removed by the fa' | |||||
111 | d6/f |
|
111 | d6/f | |
112 | $ hg verify -q |
|
112 | $ hg verify -q | |
113 | Force deletion of local changes |
|
113 | Force deletion of local changes | |
114 |
$ hg log -T "{ |
|
114 | $ hg log -T "{rev}: {desc} {outsidenarrow}\n" | |
115 |
|
|
115 | 8: local change to d3 | |
116 |
|
|
116 | 6: local change to d0 | |
117 |
|
|
117 | 5: add d10/f outsidenarrow | |
118 |
|
|
118 | 4: add d6/f | |
119 |
|
|
119 | 3: add d5/f outsidenarrow | |
120 |
|
|
120 | 2: add d3/f | |
121 |
|
|
121 | 1: add d2/f outsidenarrow | |
122 |
|
|
122 | 0: add d0/f | |
123 | $ hg tracked --removeinclude d0 --force-delete-local-changes |
|
123 | $ hg tracked --removeinclude d0 --force-delete-local-changes | |
124 | comparing with ssh://user@dummy/master |
|
124 | comparing with ssh://user@dummy/master | |
125 | searching for changes |
|
125 | searching for changes | |
@@ -133,14 +133,14 b' Force deletion of local changes' | |||||
133 | deleting data/d0/f/4374b5650fc5ae54ac857c0f0381971fdde376f7 (reposimplestore !) |
|
133 | deleting data/d0/f/4374b5650fc5ae54ac857c0f0381971fdde376f7 (reposimplestore !) | |
134 | deleting data/d0/f/index (reposimplestore !) |
|
134 | deleting data/d0/f/index (reposimplestore !) | |
135 |
|
135 | |||
136 |
$ hg log -T "{ |
|
136 | $ hg log -T "{rev}: {desc} {outsidenarrow}\n" | |
137 |
|
|
137 | 7: local change to d3 | |
138 |
|
|
138 | 5: add d10/f outsidenarrow | |
139 |
|
|
139 | 4: add d6/f | |
140 |
|
|
140 | 3: add d5/f outsidenarrow | |
141 |
|
|
141 | 2: add d3/f | |
142 |
|
|
142 | 1: add d2/f outsidenarrow | |
143 |
|
|
143 | 0: add d0/f outsidenarrow | |
144 | Can restore stripped local changes after widening |
|
144 | Can restore stripped local changes after widening | |
145 | $ hg tracked --addinclude d0 -q |
|
145 | $ hg tracked --addinclude d0 -q | |
146 | $ hg unbundle .hg/strip-backup/*-narrow.hg -q |
|
146 | $ hg unbundle .hg/strip-backup/*-narrow.hg -q |
General Comments 0
You need to be logged in to leave comments.
Login now