##// END OF EJS Templates
remotefilelog: remove most sleep in tests...
marmoute -
r44300:fac25de8 stable
parent child Browse files
Show More
@@ -79,7 +79,6 b''
79 new changesets 6b4b6f66ef8c
79 new changesets 6b4b6f66ef8c
80 (run 'hg update' to get a working copy)
80 (run 'hg update' to get a working copy)
81 prefetching file contents
81 prefetching file contents
82 $ sleep 0.5
83 $ hg debugwaitonprefetch >/dev/null 2>%1
82 $ hg debugwaitonprefetch >/dev/null 2>%1
84 $ find $CACHEDIR -type f | sort
83 $ find $CACHEDIR -type f | sort
85 $TESTTMP/hgcache/master/11/f6ad8ec52a2984abaafd7c3b516503785c2072/ef95c5376f34698742fe34f315fd82136f8f68c0
84 $TESTTMP/hgcache/master/11/f6ad8ec52a2984abaafd7c3b516503785c2072/ef95c5376f34698742fe34f315fd82136f8f68c0
@@ -108,11 +107,8 b''
108 new changesets 6b4b6f66ef8c
107 new changesets 6b4b6f66ef8c
109 (run 'hg update' to get a working copy)
108 (run 'hg update' to get a working copy)
110 prefetching file contents
109 prefetching file contents
111 $ sleep 0.5
112 $ hg debugwaitonprefetch >/dev/null 2>%1
110 $ hg debugwaitonprefetch >/dev/null 2>%1
113 $ sleep 0.5
114 $ hg debugwaitonrepack >/dev/null 2>%1
111 $ hg debugwaitonrepack >/dev/null 2>%1
115 $ sleep 0.5
116 $ find $CACHEDIR -type f | sort
112 $ find $CACHEDIR -type f | sort
117 $TESTTMP/hgcache/master/packs/6e8633deba6e544e5f8edbd7b996d6e31a2c42ae.histidx
113 $TESTTMP/hgcache/master/packs/6e8633deba6e544e5f8edbd7b996d6e31a2c42ae.histidx
118 $TESTTMP/hgcache/master/packs/6e8633deba6e544e5f8edbd7b996d6e31a2c42ae.histpack
114 $TESTTMP/hgcache/master/packs/6e8633deba6e544e5f8edbd7b996d6e31a2c42ae.histpack
@@ -144,11 +140,8 b''
144 $ hg up -r 0
140 $ hg up -r 0
145 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
141 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
146 * files fetched over * fetches - (* misses, 0.00% hit ratio) over *s (glob)
142 * files fetched over * fetches - (* misses, 0.00% hit ratio) over *s (glob)
147 $ sleep 1
148 $ hg debugwaitonprefetch >/dev/null 2>%1
143 $ hg debugwaitonprefetch >/dev/null 2>%1
149 $ sleep 1
150 $ hg debugwaitonrepack >/dev/null 2>%1
144 $ hg debugwaitonrepack >/dev/null 2>%1
151 $ sleep 1
152 $ find $CACHEDIR -type f | sort
145 $ find $CACHEDIR -type f | sort
153 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx
146 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx
154 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack
147 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack
@@ -196,11 +189,8 b''
196 $ hg commit -qAm b
189 $ hg commit -qAm b
197 * files fetched over 1 fetches - (* misses, 0.00% hit ratio) over *s (glob)
190 * files fetched over 1 fetches - (* misses, 0.00% hit ratio) over *s (glob)
198 $ hg bookmark temporary
191 $ hg bookmark temporary
199 $ sleep 1
200 $ hg debugwaitonprefetch >/dev/null 2>%1
192 $ hg debugwaitonprefetch >/dev/null 2>%1
201 $ sleep 1
202 $ hg debugwaitonrepack >/dev/null 2>%1
193 $ hg debugwaitonrepack >/dev/null 2>%1
203 $ sleep 1
204 $ find $CACHEDIR -type f | sort
194 $ find $CACHEDIR -type f | sort
205 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx
195 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx
206 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack
196 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack
@@ -246,11 +236,8 b''
246 rebasing 3:58147a5b5242 "b" (temporary tip)
236 rebasing 3:58147a5b5242 "b" (temporary tip)
247 saved backup bundle to $TESTTMP/shallow/.hg/strip-backup/58147a5b5242-c3678817-rebase.hg
237 saved backup bundle to $TESTTMP/shallow/.hg/strip-backup/58147a5b5242-c3678817-rebase.hg
248 3 files fetched over 1 fetches - (3 misses, 0.00% hit ratio) over *s (glob)
238 3 files fetched over 1 fetches - (3 misses, 0.00% hit ratio) over *s (glob)
249 $ sleep 1
250 $ hg debugwaitonprefetch >/dev/null 2>%1
239 $ hg debugwaitonprefetch >/dev/null 2>%1
251 $ sleep 1
252 $ hg debugwaitonrepack >/dev/null 2>%1
240 $ hg debugwaitonrepack >/dev/null 2>%1
253 $ sleep 1
254
241
255 # Ensure that file 'y' was prefetched - it was not part of the rebase operation and therefore
242 # Ensure that file 'y' was prefetched - it was not part of the rebase operation and therefore
256 # could only be downloaded by the background prefetch
243 # could only be downloaded by the background prefetch
@@ -290,9 +277,7 b''
290 (running background incremental repack)
277 (running background incremental repack)
291 * files fetched over 1 fetches - (* misses, 0.00% hit ratio) over *s (glob) (?)
278 * files fetched over 1 fetches - (* misses, 0.00% hit ratio) over *s (glob) (?)
292
279
293 $ sleep 0.5
294 $ hg debugwaitonrepack >/dev/null 2>%1
280 $ hg debugwaitonrepack >/dev/null 2>%1
295 $ sleep 0.5
296
281
297 $ find $CACHEDIR -type f | sort
282 $ find $CACHEDIR -type f | sort
298 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx
283 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx
@@ -334,9 +319,7 b''
334 got lock after * seconds (glob) (?)
319 got lock after * seconds (glob) (?)
335 (running background incremental repack)
320 (running background incremental repack)
336 * files fetched over 1 fetches - (* misses, 0.00% hit ratio) over *s (glob) (?)
321 * files fetched over 1 fetches - (* misses, 0.00% hit ratio) over *s (glob) (?)
337 $ sleep 0.5
338 $ hg debugwaitonrepack >/dev/null 2>%1
322 $ hg debugwaitonrepack >/dev/null 2>%1
339 $ sleep 0.5
340
323
341 $ find $CACHEDIR -type f | sort
324 $ find $CACHEDIR -type f | sort
342 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx
325 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx
@@ -40,7 +40,6 b''
40 $ hg prefetch
40 $ hg prefetch
41 2 files fetched over 1 fetches - (2 misses, 0.00% hit ratio) over *s (glob)
41 2 files fetched over 1 fetches - (2 misses, 0.00% hit ratio) over *s (glob)
42 $ hg repack
42 $ hg repack
43 $ sleep 0.5
44 $ hg debugwaitonrepack >/dev/null 2>%1
43 $ hg debugwaitonrepack >/dev/null 2>%1
45
44
46 $ find $CACHEDIR | sort | egrep ".datapack|.histpack"
45 $ find $CACHEDIR | sort | egrep ".datapack|.histpack"
@@ -73,7 +72,6 b''
73 > EOF
72 > EOF
74
73
75 $ hg repack
74 $ hg repack
76 $ sleep 0.5
77 $ hg debugwaitonrepack >/dev/null 2>%1
75 $ hg debugwaitonrepack >/dev/null 2>%1
78
76
79 $ find $CACHEDIR | sort | egrep ".datapack|.histpack"
77 $ find $CACHEDIR | sort | egrep ".datapack|.histpack"
@@ -101,7 +99,6 b''
101 $ hg prefetch
99 $ hg prefetch
102 2 files fetched over 1 fetches - (2 misses, 0.00% hit ratio) over *s (glob)
100 2 files fetched over 1 fetches - (2 misses, 0.00% hit ratio) over *s (glob)
103 $ hg repack
101 $ hg repack
104 $ sleep 0.5
105 $ hg debugwaitonrepack >/dev/null 2>%1
102 $ hg debugwaitonrepack >/dev/null 2>%1
106
103
107 $ find $CACHEDIR | sort | egrep ".datapack|.histpack"
104 $ find $CACHEDIR | sort | egrep ".datapack|.histpack"
@@ -135,7 +132,6 b''
135 > EOF
132 > EOF
136
133
137 $ hg repack
134 $ hg repack
138 $ sleep 0.5
139 $ hg debugwaitonrepack >/dev/null 2>%1
135 $ hg debugwaitonrepack >/dev/null 2>%1
140
136
141 $ find $CACHEDIR | sort | egrep ".datapack|.histpack"
137 $ find $CACHEDIR | sort | egrep ".datapack|.histpack"
@@ -143,7 +143,6 b''
143
143
144 $ hg repack --background
144 $ hg repack --background
145 (running background repack)
145 (running background repack)
146 $ sleep 0.5
147 $ hg debugwaitonrepack >/dev/null 2>&1
146 $ hg debugwaitonrepack >/dev/null 2>&1
148 $ find $CACHEDIR -type f | sort
147 $ find $CACHEDIR -type f | sort
149 $TESTTMP/hgcache/master/packs/39443fa1064182e93d968b5cba292eb5283260d0.dataidx
148 $TESTTMP/hgcache/master/packs/39443fa1064182e93d968b5cba292eb5283260d0.dataidx
@@ -343,7 +342,6 b' Pull should run background repack'
343 searching for changes
342 searching for changes
344 no changes found
343 no changes found
345 (running background incremental repack)
344 (running background incremental repack)
346 $ sleep 0.5
347 $ hg debugwaitonrepack >/dev/null 2>&1
345 $ hg debugwaitonrepack >/dev/null 2>&1
348 $ ls_l $TESTTMP/hgcache/master/packs/ | grep datapack
346 $ ls_l $TESTTMP/hgcache/master/packs/ | grep datapack
349 -r--r--r-- 303 156a6c1c83aeb69422d7936e0a46ba9bc06a71c0.datapack
347 -r--r--r-- 303 156a6c1c83aeb69422d7936e0a46ba9bc06a71c0.datapack
@@ -153,7 +153,6 b''
153
153
154 $ hg repack --background
154 $ hg repack --background
155 (running background repack)
155 (running background repack)
156 $ sleep 0.5
157 $ hg debugwaitonrepack >/dev/null 2>&1
156 $ hg debugwaitonrepack >/dev/null 2>&1
158 $ find $CACHEDIR -type f | sort
157 $ find $CACHEDIR -type f | sort
159 $TESTTMP/hgcache/master/packs/39443fa1064182e93d968b5cba292eb5283260d0.dataidx
158 $TESTTMP/hgcache/master/packs/39443fa1064182e93d968b5cba292eb5283260d0.dataidx
@@ -372,7 +371,6 b' Pull should run background repack'
372 searching for changes
371 searching for changes
373 no changes found
372 no changes found
374 (running background incremental repack)
373 (running background incremental repack)
375 $ sleep 0.5
376 $ hg debugwaitonrepack >/dev/null 2>&1
374 $ hg debugwaitonrepack >/dev/null 2>&1
377 $ ls_l $TESTTMP/hgcache/master/packs/ | grep datapack
375 $ ls_l $TESTTMP/hgcache/master/packs/ | grep datapack
378 -r--r--r-- 303 156a6c1c83aeb69422d7936e0a46ba9bc06a71c0.datapack
376 -r--r--r-- 303 156a6c1c83aeb69422d7936e0a46ba9bc06a71c0.datapack
General Comments 0
You need to be logged in to leave comments. Login now