comparison tests/test-tags.t @ 24763:a698e088ad29

tags: explicitly log which tags cache file is being written We now have multiple tags cache files. Record exactly which file is being written. This should help aid debugging into performance issues with any single filter.
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 16 Apr 2015 11:59:36 -0400
parents 1062663808ce
children f379428a0754
comparison
equal deleted inserted replaced
24762:1062663808ce 24763:a698e088ad29
131 b9154636be93 tip 131 b9154636be93 tip
132 $ hg blackbox -l 5 132 $ hg blackbox -l 5
133 1970/01/01 00:00:00 bob> identify 133 1970/01/01 00:00:00 bob> identify
134 1970/01/01 00:00:00 bob> writing 48 bytes to cache/hgtagsfnodes1 134 1970/01/01 00:00:00 bob> writing 48 bytes to cache/hgtagsfnodes1
135 1970/01/01 00:00:00 bob> 0/1 cache hits/lookups in * seconds (glob) 135 1970/01/01 00:00:00 bob> 0/1 cache hits/lookups in * seconds (glob)
136 1970/01/01 00:00:00 bob> writing tags cache file with 1 tags 136 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags
137 1970/01/01 00:00:00 bob> identify exited 0 after ?.?? seconds (glob) 137 1970/01/01 00:00:00 bob> identify exited 0 after ?.?? seconds (glob)
138 138
139 Failure to acquire lock results in no write 139 Failure to acquire lock results in no write
140 140
141 $ rm -f .hg/cache/tags2-visible .hg/cache/hgtagsfnodes1 141 $ rm -f .hg/cache/tags2-visible .hg/cache/hgtagsfnodes1
144 b9154636be93 tip 144 b9154636be93 tip
145 $ hg blackbox -l 5 145 $ hg blackbox -l 5
146 1970/01/01 00:00:00 bob> identify 146 1970/01/01 00:00:00 bob> identify
147 1970/01/01 00:00:00 bob> not writing .hg/cache/hgtagsfnodes1 because lock held 147 1970/01/01 00:00:00 bob> not writing .hg/cache/hgtagsfnodes1 because lock held
148 1970/01/01 00:00:00 bob> 0/1 cache hits/lookups in * seconds (glob) 148 1970/01/01 00:00:00 bob> 0/1 cache hits/lookups in * seconds (glob)
149 1970/01/01 00:00:00 bob> writing tags cache file with 1 tags 149 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags
150 1970/01/01 00:00:00 bob> identify exited 0 after * seconds (glob) 150 1970/01/01 00:00:00 bob> identify exited 0 after * seconds (glob)
151 151
152 $ fnodescacheexists 152 $ fnodescacheexists
153 no fnodes cache 153 no fnodes cache
154 154
341 341
342 $ hg blackbox -l 5 342 $ hg blackbox -l 5
343 1970/01/01 00:00:00 bob> tags 343 1970/01/01 00:00:00 bob> tags
344 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1 344 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1
345 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob) 345 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob)
346 1970/01/01 00:00:00 bob> writing tags cache file with 1 tags 346 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags
347 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) 347 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob)
348 348
349 #if unix-permissions no-root 349 #if unix-permissions no-root
350 Errors writing to .hgtags fnodes cache are silently ignored 350 Errors writing to .hgtags fnodes cache are silently ignored
351 351
361 361
362 $ hg blackbox -l 5 362 $ hg blackbox -l 5
363 1970/01/01 00:00:00 bob> tags 363 1970/01/01 00:00:00 bob> tags
364 1970/01/01 00:00:00 bob> couldn't write cache/hgtagsfnodes1: [Errno 13] Permission denied: '$TESTTMP/t2/.hg/cache/hgtagsfnodes1' 364 1970/01/01 00:00:00 bob> couldn't write cache/hgtagsfnodes1: [Errno 13] Permission denied: '$TESTTMP/t2/.hg/cache/hgtagsfnodes1'
365 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob) 365 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob)
366 1970/01/01 00:00:00 bob> writing tags cache file with 1 tags 366 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags
367 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) 367 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob)
368 368
369 $ chmod a+w .hg/cache/hgtagsfnodes1 369 $ chmod a+w .hg/cache/hgtagsfnodes1
370 #endif 370 #endif
371 371
376 376
377 $ hg blackbox -l 5 377 $ hg blackbox -l 5
378 1970/01/01 00:00:00 bob> tags 378 1970/01/01 00:00:00 bob> tags
379 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1 379 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1
380 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob) 380 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob)
381 1970/01/01 00:00:00 bob> writing tags cache file with 1 tags 381 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags
382 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) 382 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob)
383 383
384 $ f --size .hg/cache/hgtagsfnodes1 384 $ f --size .hg/cache/hgtagsfnodes1
385 .hg/cache/hgtagsfnodes1: size=168 385 .hg/cache/hgtagsfnodes1: size=168
386 386
392 bar 1:78391a272241 392 bar 1:78391a272241
393 393
394 $ hg blackbox -l 4 394 $ hg blackbox -l 4
395 1970/01/01 00:00:00 bob> tags 395 1970/01/01 00:00:00 bob> tags
396 1970/01/01 00:00:00 bob> 3/3 cache hits/lookups in * seconds (glob) 396 1970/01/01 00:00:00 bob> 3/3 cache hits/lookups in * seconds (glob)
397 1970/01/01 00:00:00 bob> writing tags cache file with 1 tags 397 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags
398 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) 398 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob)
399 399
400 $ f --size .hg/cache/hgtagsfnodes1 400 $ f --size .hg/cache/hgtagsfnodes1
401 .hg/cache/hgtagsfnodes1: size=168 401 .hg/cache/hgtagsfnodes1: size=168
402 402
409 409
410 $ hg blackbox -l 5 410 $ hg blackbox -l 5
411 1970/01/01 00:00:00 bob> tags 411 1970/01/01 00:00:00 bob> tags
412 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1 412 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1
413 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob) 413 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob)
414 1970/01/01 00:00:00 bob> writing tags cache file with 1 tags 414 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags
415 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) 415 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob)
416 $ f --size .hg/cache/hgtagsfnodes1 416 $ f --size .hg/cache/hgtagsfnodes1
417 .hg/cache/hgtagsfnodes1: size=144 417 .hg/cache/hgtagsfnodes1: size=144
418 418
419 $ hg -q --config extensions.strip= strip -r 5 --no-backup 419 $ hg -q --config extensions.strip= strip -r 5 --no-backup