##// END OF EJS Templates
tests: use {rev} instead of {node|short} and (glob) in narrow tests...
Martin von Zweigbergk -
r39397:5ebfb7cc default
parent child Browse files
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, '...')}{node|short}: {desc}\n"
75 $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n"
76 *: update widest v4 (glob)
76 7: update widest v4
77 *: add outside2 (glob)
77 6: add outside2
78 *: update inside (glob)
78 5: update inside
79 *: update widest v3 (glob)
79 4: update widest v3
80 *: add wider, update widest (glob)
80 3: add wider, update widest
81 *: add outside (glob)
81 2: add outside
82 *: add widest (glob)
82 1: add widest
83 *: add inside (glob)
83 0: add inside
84
84
85 $ cd ..
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, '...')}{node|short}: {desc}\n"
127 $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n"
128 *: update widest v4 (glob)
128 7: update widest v4
129 *: add outside2 (glob)
129 6: add outside2
130 *: update inside (glob)
130 5: update inside
131 *: update widest v3 (glob)
131 4: update widest v3
132 *: add wider, update widest (glob)
132 3: add wider, update widest
133 *: add outside (glob)
133 2: add outside
134 *: add widest (glob)
134 1: add widest
135 *: add inside (glob)
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, '...')}{node|short}: {desc}\n"
178 $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n"
179 *: update widest v4 (glob)
179 7: update widest v4
180 *: add outside2 (glob)
180 6: add outside2
181 *: update inside (glob)
181 5: update inside
182 *: update widest v3 (glob)
182 4: update widest v3
183 *: add wider, update widest (glob)
183 3: add wider, update widest
184 *: add outside (glob)
184 2: add outside
185 *: add widest (glob)
185 1: add widest
186 *: add inside (glob)
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 "{node|short}: {desc}\n"
201 $ hg log -T "{rev}: {desc}\n"
202 *: add d10/f (glob)
202 10: add d10/f
203 *: add d9/f (glob)
203 9: add d9/f
204 *: add d8/f (glob)
204 8: add d8/f
205 *: add d7/f (glob)
205 7: add d7/f
206 *: add d6/f (glob)
206 6: add d6/f
207 *: add d5/f (glob)
207 5: add d5/f
208 *: add d4/f (glob)
208 4: add d4/f
209 *: add d3/f (glob)
209 3: add d3/f
210 *: add d2/f (glob)
210 2: add d2/f
211 *: add d1/f (glob)
211 1: add d1/f
212 *: add d0/f (glob)
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, '...')}{node|short}: {desc}\n"
239 $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n"
240 *: add d10/f (glob)
240 10: add d10/f
241 *: add d9/f (glob)
241 9: add d9/f
242 *: add d8/f (glob)
242 8: add d8/f
243 *: add d7/f (glob)
243 7: add d7/f
244 *: add d6/f (glob)
244 6: add d6/f
245 *: add d5/f (glob)
245 5: add d5/f
246 *: add d4/f (glob)
246 4: add d4/f
247 *: add d3/f (glob)
247 3: add d3/f
248 *: add d2/f (glob)
248 2: add d2/f
249 *: add d1/f (glob)
249 1: add d1/f
250 *: add d0/f (glob)
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, '...')}{node|short}: {desc}\n"
266 $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n"
267 *: add d10/f (glob)
267 10: add d10/f
268 *: add d9/f (glob)
268 9: add d9/f
269 *: add d8/f (glob)
269 8: add d8/f
270 *: add d7/f (glob)
270 7: add d7/f
271 *: add d6/f (glob)
271 6: add d6/f
272 *: add d5/f (glob)
272 5: add d5/f
273 *: add d4/f (glob)
273 4: add d4/f
274 *: add d3/f (glob)
274 3: add d3/f
275 *: add d2/f (glob)
275 2: add d2/f
276 *: add d1/f (glob)
276 1: add d1/f
277 *: add d0/f (glob)
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, '...')}{node|short}: {desc}\n"
294 $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n"
295 *: add d2/f (glob)
295 2: add d2/f
296 *: add d1/f (glob)
296 1: add d1/f
297 *: add d0/f (glob)
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, '...')}{node|short}: {desc}\n"
79 $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n"
80 *: update widest v4 (glob)
80 7: update widest v4
81 *: add outside2 (glob)
81 6: add outside2
82 *: update inside (glob)
82 5: update inside
83 *: update widest v3 (glob)
83 4: update widest v3
84 *: add wider, update widest (glob)
84 3: add wider, update widest
85 *: add outside (glob)
85 2: add outside
86 *: add widest (glob)
86 1: add widest
87 *: add inside (glob)
87 0: add inside
88
88
89 $ cd ..
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, '...')}{node|short}: {desc}\n"
132 $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n"
133 ...*: update widest v4 (glob)
133 ...5: update widest v4
134 *: update inside (glob)
134 4: update inside
135 ...*: update widest v3 (glob)
135 ...3: update widest v3
136 *: add wider, update widest (glob)
136 2: add wider, update widest
137 ...*: add outside (glob)
137 ...1: add outside
138 *: add inside (glob)
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, '...')}{node|short}: {desc}\n"
182 $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n"
183 *: update widest v4 (glob)
183 7: update widest v4
184 ...*: add outside2 (glob)
184 ...6: add outside2
185 *: update inside (glob)
185 5: update inside
186 *: update widest v3 (glob)
186 4: update widest v3
187 *: add wider, update widest (glob)
187 3: add wider, update widest
188 ...*: add outside (glob)
188 ...2: add outside
189 *: add widest (glob)
189 1: add widest
190 *: add inside (glob)
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 "{node|short}: {desc}\n"
209 $ hg log -T "{rev}: {desc}\n"
210 *: add d10/f (glob)
210 10: add d10/f
211 *: add d9/f (glob)
211 9: add d9/f
212 *: add d8/f (glob)
212 8: add d8/f
213 *: add d7/f (glob)
213 7: add d7/f
214 *: add d6/f (glob)
214 6: add d6/f
215 *: add d5/f (glob)
215 5: add d5/f
216 *: add d4/f (glob)
216 4: add d4/f
217 *: add d3/f (glob)
217 3: add d3/f
218 *: add d2/f (glob)
218 2: add d2/f
219 *: add d1/f (glob)
219 1: add d1/f
220 *: add d0/f (glob)
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, '...')}{node|short}: {desc}\n"
247 $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n"
248 ...*: add d10/f (glob)
248 ...7: add d10/f
249 *: add d9/f (glob)
249 6: add d9/f
250 ...*: add d8/f (glob)
250 ...5: add d8/f
251 *: add d6/f (glob)
251 4: add d6/f
252 ...*: add d5/f (glob)
252 ...3: add d5/f
253 *: add d3/f (glob)
253 2: add d3/f
254 ...*: add d2/f (glob)
254 ...1: add d2/f
255 *: add d0/f (glob)
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, '...')}{node|short}: {desc}\n"
272 $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n"
273 ...*: add d10/f (glob)
273 ...8: add d10/f
274 *: add d9/f (glob)
274 7: add d9/f
275 ...*: add d8/f (glob)
275 ...6: add d8/f
276 *: add d6/f (glob)
276 5: add d6/f
277 ...*: add d5/f (glob)
277 ...4: add d5/f
278 *: add d3/f (glob)
278 3: add d3/f
279 ...*: add d2/f (glob)
279 ...2: add d2/f
280 *: add d1/f (glob)
280 1: add d1/f
281 *: add d0/f (glob)
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, '...')}{node|short}: {desc}\n"
298 $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n"
299 *: add d2/f (glob)
299 1: add d2/f
300 ...*: add d1/f (glob)
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 "{node|short}: {desc}\n"
25 $ hg log -T "{rev}: {desc}\n"
26 *: add d10/f (glob)
26 10: add d10/f
27 *: add d9/f (glob)
27 9: add d9/f
28 *: add d8/f (glob)
28 8: add d8/f
29 *: add d7/f (glob)
29 7: add d7/f
30 *: add d6/f (glob)
30 6: add d6/f
31 *: add d5/f (glob)
31 5: add d5/f
32 *: add d4/f (glob)
32 4: add d4/f
33 *: add d3/f (glob)
33 3: add d3/f
34 *: add d2/f (glob)
34 2: add d2/f
35 *: add d1/f (glob)
35 1: add d1/f
36 *: add d0/f (glob)
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 "{node|short}: {desc} {outsidenarrow}\n"
114 $ hg log -T "{rev}: {desc} {outsidenarrow}\n"
115 *: local change to d3 (glob)
115 8: local change to d3
116 *: local change to d0 (glob)
116 6: local change to d0
117 *: add d10/f outsidenarrow (glob)
117 5: add d10/f outsidenarrow
118 *: add d6/f (glob)
118 4: add d6/f
119 *: add d5/f outsidenarrow (glob)
119 3: add d5/f outsidenarrow
120 *: add d3/f (glob)
120 2: add d3/f
121 *: add d2/f outsidenarrow (glob)
121 1: add d2/f outsidenarrow
122 *: add d0/f (glob)
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 "{node|short}: {desc} {outsidenarrow}\n"
136 $ hg log -T "{rev}: {desc} {outsidenarrow}\n"
137 *: local change to d3 (glob)
137 7: local change to d3
138 *: add d10/f outsidenarrow (glob)
138 5: add d10/f outsidenarrow
139 *: add d6/f (glob)
139 4: add d6/f
140 *: add d5/f outsidenarrow (glob)
140 3: add d5/f outsidenarrow
141 *: add d3/f (glob)
141 2: add d3/f
142 *: add d2/f outsidenarrow (glob)
142 1: add d2/f outsidenarrow
143 *: add d0/f outsidenarrow (glob)
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