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