135 |
135 |
136 $ rm -f .hg/cache/tags2-visible .hg/cache/hgtagsfnodes1 |
136 $ rm -f .hg/cache/tags2-visible .hg/cache/hgtagsfnodes1 |
137 $ hg identify |
137 $ hg identify |
138 b9154636be93 tip |
138 b9154636be93 tip |
139 $ hg blackbox -l 6 |
139 $ hg blackbox -l 6 |
140 1970/01/01 00:00:00 bob (5000)> identify |
140 1970/01/01 00:00:00 bob @b9154636be938d3d431e75a7c906504a079bfe07 (5000)> identify |
141 1970/01/01 00:00:00 bob (5000)> writing 48 bytes to cache/hgtagsfnodes1 |
141 1970/01/01 00:00:00 bob @b9154636be938d3d431e75a7c906504a079bfe07 (5000)> writing 48 bytes to cache/hgtagsfnodes1 |
142 1970/01/01 00:00:00 bob (5000)> 0/1 cache hits/lookups in * seconds (glob) |
142 1970/01/01 00:00:00 bob @b9154636be938d3d431e75a7c906504a079bfe07 (5000)> 0/1 cache hits/lookups in * seconds (glob) |
143 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags |
143 1970/01/01 00:00:00 bob @b9154636be938d3d431e75a7c906504a079bfe07 (5000)> writing .hg/cache/tags2-visible with 1 tags |
144 1970/01/01 00:00:00 bob (5000)> identify exited 0 after * seconds (glob) |
144 1970/01/01 00:00:00 bob @(unknown) (5000)> identify exited 0 after * seconds (glob) |
145 1970/01/01 00:00:00 bob (5000)> blackbox -l 6 |
145 1970/01/01 00:00:00 bob @b9154636be938d3d431e75a7c906504a079bfe07 (5000)> blackbox -l 6 |
146 |
146 |
147 Failure to acquire lock results in no write |
147 Failure to acquire lock results in no write |
148 |
148 |
149 $ rm -f .hg/cache/tags2-visible .hg/cache/hgtagsfnodes1 |
149 $ rm -f .hg/cache/tags2-visible .hg/cache/hgtagsfnodes1 |
150 $ echo 'foo:1' > .hg/wlock |
150 $ echo 'foo:1' > .hg/wlock |
151 $ hg identify |
151 $ hg identify |
152 b9154636be93 tip |
152 b9154636be93 tip |
153 $ hg blackbox -l 6 |
153 $ hg blackbox -l 6 |
154 1970/01/01 00:00:00 bob (5000)> identify |
154 1970/01/01 00:00:00 bob @b9154636be938d3d431e75a7c906504a079bfe07 (5000)> identify |
155 1970/01/01 00:00:00 bob (5000)> not writing .hg/cache/hgtagsfnodes1 because lock cannot be acquired |
155 1970/01/01 00:00:00 bob @b9154636be938d3d431e75a7c906504a079bfe07 (5000)> not writing .hg/cache/hgtagsfnodes1 because lock cannot be acquired |
156 1970/01/01 00:00:00 bob (5000)> 0/1 cache hits/lookups in * seconds (glob) |
156 1970/01/01 00:00:00 bob @b9154636be938d3d431e75a7c906504a079bfe07 (5000)> 0/1 cache hits/lookups in * seconds (glob) |
157 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags |
157 1970/01/01 00:00:00 bob @b9154636be938d3d431e75a7c906504a079bfe07 (5000)> writing .hg/cache/tags2-visible with 1 tags |
158 1970/01/01 00:00:00 bob (5000)> identify exited 0 after * seconds (glob) |
158 1970/01/01 00:00:00 bob @(unknown) (5000)> identify exited 0 after * seconds (glob) |
159 1970/01/01 00:00:00 bob (5000)> blackbox -l 6 |
159 1970/01/01 00:00:00 bob @b9154636be938d3d431e75a7c906504a079bfe07 (5000)> blackbox -l 6 |
160 |
160 |
161 $ fnodescacheexists |
161 $ fnodescacheexists |
162 no fnodes cache |
162 no fnodes cache |
163 |
163 |
164 $ rm .hg/wlock |
164 $ rm .hg/wlock |
349 $ hg tags |
349 $ hg tags |
350 tip 5:8dbfe60eff30 |
350 tip 5:8dbfe60eff30 |
351 bar 1:78391a272241 |
351 bar 1:78391a272241 |
352 |
352 |
353 $ hg blackbox -l 6 |
353 $ hg blackbox -l 6 |
354 1970/01/01 00:00:00 bob (5000)> tags |
354 1970/01/01 00:00:00 bob @8dbfe60eff306a54259cfe007db9e330e7ecf866 (5000)> tags |
355 1970/01/01 00:00:00 bob (5000)> writing 24 bytes to cache/hgtagsfnodes1 |
355 1970/01/01 00:00:00 bob @8dbfe60eff306a54259cfe007db9e330e7ecf866 (5000)> writing 24 bytes to cache/hgtagsfnodes1 |
356 1970/01/01 00:00:00 bob (5000)> 2/3 cache hits/lookups in * seconds (glob) |
356 1970/01/01 00:00:00 bob @8dbfe60eff306a54259cfe007db9e330e7ecf866 (5000)> 2/3 cache hits/lookups in * seconds (glob) |
357 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags |
357 1970/01/01 00:00:00 bob @8dbfe60eff306a54259cfe007db9e330e7ecf866 (5000)> writing .hg/cache/tags2-visible with 1 tags |
358 1970/01/01 00:00:00 bob (5000)> tags exited 0 after * seconds (glob) |
358 1970/01/01 00:00:00 bob @(unknown) (5000)> tags exited 0 after * seconds (glob) |
359 1970/01/01 00:00:00 bob (5000)> blackbox -l 6 |
359 1970/01/01 00:00:00 bob @8dbfe60eff306a54259cfe007db9e330e7ecf866 (5000)> blackbox -l 6 |
360 |
360 |
361 #if unix-permissions no-root |
361 #if unix-permissions no-root |
362 Errors writing to .hgtags fnodes cache are silently ignored |
362 Errors writing to .hgtags fnodes cache are silently ignored |
363 |
363 |
364 $ echo dummy2 > foo |
364 $ echo dummy2 > foo |
370 $ hg tags |
370 $ hg tags |
371 tip 6:b968051b5cf3 |
371 tip 6:b968051b5cf3 |
372 bar 1:78391a272241 |
372 bar 1:78391a272241 |
373 |
373 |
374 $ hg blackbox -l 6 |
374 $ hg blackbox -l 6 |
375 1970/01/01 00:00:00 bob (5000)> tags |
375 1970/01/01 00:00:00 bob @b968051b5cf3f624b771779c6d5f84f1d4c3fb5d (5000)> tags |
376 1970/01/01 00:00:00 bob (5000)> couldn't write cache/hgtagsfnodes1: [Errno 13] Permission denied: '$TESTTMP/t2/.hg/cache/hgtagsfnodes1' (glob) |
376 1970/01/01 00:00:00 bob @b968051b5cf3f624b771779c6d5f84f1d4c3fb5d (5000)> couldn't write cache/hgtagsfnodes1: [Errno 13] Permission denied: '$TESTTMP/t2/.hg/cache/hgtagsfnodes1' |
377 1970/01/01 00:00:00 bob (5000)> 2/3 cache hits/lookups in * seconds (glob) |
377 1970/01/01 00:00:00 bob @b968051b5cf3f624b771779c6d5f84f1d4c3fb5d (5000)> 2/3 cache hits/lookups in * seconds (glob) |
378 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags |
378 1970/01/01 00:00:00 bob @b968051b5cf3f624b771779c6d5f84f1d4c3fb5d (5000)> writing .hg/cache/tags2-visible with 1 tags |
379 1970/01/01 00:00:00 bob (5000)> tags exited 0 after * seconds (glob) |
379 1970/01/01 00:00:00 bob @(unknown) (5000)> tags exited 0 after * seconds (glob) |
380 1970/01/01 00:00:00 bob (5000)> blackbox -l 6 |
380 1970/01/01 00:00:00 bob @b968051b5cf3f624b771779c6d5f84f1d4c3fb5d (5000)> blackbox -l 6 |
381 |
381 |
382 $ chmod a+w .hg/cache/hgtagsfnodes1 |
382 $ chmod a+w .hg/cache/hgtagsfnodes1 |
383 |
383 |
384 $ rm -f .hg/cache/tags2-visible |
384 $ rm -f .hg/cache/tags2-visible |
385 $ hg tags |
385 $ hg tags |
386 tip 6:b968051b5cf3 |
386 tip 6:b968051b5cf3 |
387 bar 1:78391a272241 |
387 bar 1:78391a272241 |
388 |
388 |
389 $ hg blackbox -l 6 |
389 $ hg blackbox -l 6 |
390 1970/01/01 00:00:00 bob (5000)> tags |
390 1970/01/01 00:00:00 bob @b968051b5cf3f624b771779c6d5f84f1d4c3fb5d (5000)> tags |
391 1970/01/01 00:00:00 bob (5000)> writing 24 bytes to cache/hgtagsfnodes1 |
391 1970/01/01 00:00:00 bob @b968051b5cf3f624b771779c6d5f84f1d4c3fb5d (5000)> writing 24 bytes to cache/hgtagsfnodes1 |
392 1970/01/01 00:00:00 bob (5000)> 2/3 cache hits/lookups in * seconds (glob) |
392 1970/01/01 00:00:00 bob @b968051b5cf3f624b771779c6d5f84f1d4c3fb5d (5000)> 2/3 cache hits/lookups in * seconds (glob) |
393 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags |
393 1970/01/01 00:00:00 bob @b968051b5cf3f624b771779c6d5f84f1d4c3fb5d (5000)> writing .hg/cache/tags2-visible with 1 tags |
394 1970/01/01 00:00:00 bob (5000)> tags exited 0 after * seconds (glob) |
394 1970/01/01 00:00:00 bob @(unknown) (5000)> tags exited 0 after * seconds (glob) |
395 1970/01/01 00:00:00 bob (5000)> blackbox -l 6 |
395 1970/01/01 00:00:00 bob @b968051b5cf3f624b771779c6d5f84f1d4c3fb5d (5000)> blackbox -l 6 |
396 |
396 |
397 $ f --size .hg/cache/hgtagsfnodes1 |
397 $ f --size .hg/cache/hgtagsfnodes1 |
398 .hg/cache/hgtagsfnodes1: size=168 |
398 .hg/cache/hgtagsfnodes1: size=168 |
399 |
399 |
400 $ hg -q --config extensions.strip= strip -r 6 --no-backup |
400 $ hg -q --config extensions.strip= strip -r 6 --no-backup |
414 $ hg tags |
414 $ hg tags |
415 tip 4:0c192d7d5e6b |
415 tip 4:0c192d7d5e6b |
416 bar 1:78391a272241 |
416 bar 1:78391a272241 |
417 |
417 |
418 $ hg blackbox -l 5 |
418 $ hg blackbox -l 5 |
419 1970/01/01 00:00:00 bob (5000)> writing 24 bytes to cache/hgtagsfnodes1 |
419 1970/01/01 00:00:00 bob @0c192d7d5e6b78a714de54a2e9627952a877e25a (5000)> writing 24 bytes to cache/hgtagsfnodes1 |
420 1970/01/01 00:00:00 bob (5000)> 2/3 cache hits/lookups in * seconds (glob) |
420 1970/01/01 00:00:00 bob @0c192d7d5e6b78a714de54a2e9627952a877e25a (5000)> 2/3 cache hits/lookups in * seconds (glob) |
421 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags |
421 1970/01/01 00:00:00 bob @0c192d7d5e6b78a714de54a2e9627952a877e25a (5000)> writing .hg/cache/tags2-visible with 1 tags |
422 1970/01/01 00:00:00 bob (5000)> tags exited 0 after * seconds (glob) |
422 1970/01/01 00:00:00 bob @(unknown) (5000)> tags exited 0 after * seconds (glob) |
423 1970/01/01 00:00:00 bob (5000)> blackbox -l 5 |
423 1970/01/01 00:00:00 bob @0c192d7d5e6b78a714de54a2e9627952a877e25a (5000)> blackbox -l 5 |
424 |
424 |
425 $ f --size .hg/cache/hgtagsfnodes1 |
425 $ f --size .hg/cache/hgtagsfnodes1 |
426 .hg/cache/hgtagsfnodes1: size=120 |
426 .hg/cache/hgtagsfnodes1: size=120 |
427 |
427 |
428 $ echo dummy > foo |
428 $ echo dummy > foo |
431 $ hg tags |
431 $ hg tags |
432 tip 5:035f65efb448 |
432 tip 5:035f65efb448 |
433 bar 1:78391a272241 |
433 bar 1:78391a272241 |
434 |
434 |
435 $ hg blackbox -l 6 |
435 $ hg blackbox -l 6 |
436 1970/01/01 00:00:00 bob (5000)> tags |
436 1970/01/01 00:00:00 bob @035f65efb448350f4772141702a81ab1df48c465 (5000)> tags |
437 1970/01/01 00:00:00 bob (5000)> writing 24 bytes to cache/hgtagsfnodes1 |
437 1970/01/01 00:00:00 bob @035f65efb448350f4772141702a81ab1df48c465 (5000)> writing 24 bytes to cache/hgtagsfnodes1 |
438 1970/01/01 00:00:00 bob (5000)> 2/3 cache hits/lookups in * seconds (glob) |
438 1970/01/01 00:00:00 bob @035f65efb448350f4772141702a81ab1df48c465 (5000)> 2/3 cache hits/lookups in * seconds (glob) |
439 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags |
439 1970/01/01 00:00:00 bob @035f65efb448350f4772141702a81ab1df48c465 (5000)> writing .hg/cache/tags2-visible with 1 tags |
440 1970/01/01 00:00:00 bob (5000)> tags exited 0 after * seconds (glob) |
440 1970/01/01 00:00:00 bob @(unknown) (5000)> tags exited 0 after * seconds (glob) |
441 1970/01/01 00:00:00 bob (5000)> blackbox -l 6 |
441 1970/01/01 00:00:00 bob @035f65efb448350f4772141702a81ab1df48c465 (5000)> blackbox -l 6 |
442 $ f --size .hg/cache/hgtagsfnodes1 |
442 $ f --size .hg/cache/hgtagsfnodes1 |
443 .hg/cache/hgtagsfnodes1: size=144 |
443 .hg/cache/hgtagsfnodes1: size=144 |
444 |
444 |
445 $ hg -q --config extensions.strip= strip -r 5 --no-backup |
445 $ hg -q --config extensions.strip= strip -r 5 --no-backup |
446 |
446 |