comparison tests/test-tags.t @ 24759:d082c6ef9ec3

tags: don't read .hgtags fnodes from tags cache files Now that we have a standalone and shared cache for .hgtags fnodes, the .hgtags fnodes stored in the tags cache files are redundant. Upcoming patches will change the format of the tags cache files to remove this data and to improve the validation. To prepare for this, we change the tags reading code to ignore all but the tip .hgtags fnodes entries in existing tags cache files. All fnodes lookups now go through our new shared cache, which is why test output changed. Format of tags cache files has not yet changed.
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 16 Apr 2015 10:12:44 -0400
parents b061a2049662
children 410f3856196f
comparison
equal deleted inserted replaced
24758:d7451adc72f6 24759:d082c6ef9ec3
343 bar 1:78391a272241 343 bar 1:78391a272241
344 344
345 $ hg blackbox -l 5 345 $ hg blackbox -l 5
346 1970/01/01 00:00:00 bob> tags 346 1970/01/01 00:00:00 bob> tags
347 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1 347 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1
348 1970/01/01 00:00:00 bob> 0/1 cache hits/lookups in * seconds (glob) 348 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob)
349 1970/01/01 00:00:00 bob> writing tags cache file with 3 heads and 1 tags 349 1970/01/01 00:00:00 bob> writing tags cache file with 3 heads and 1 tags
350 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) 350 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob)
351 351
352 #if unix-permissions no-root 352 #if unix-permissions no-root
353 Errors writing to .hgtags fnodes cache are silently ignored 353 Errors writing to .hgtags fnodes cache are silently ignored
394 tip 4:0c192d7d5e6b 394 tip 4:0c192d7d5e6b
395 bar 1:78391a272241 395 bar 1:78391a272241
396 396
397 $ hg blackbox -l 4 397 $ hg blackbox -l 4
398 1970/01/01 00:00:00 bob> tags 398 1970/01/01 00:00:00 bob> tags
399 1970/01/01 00:00:00 bob> 1/1 cache hits/lookups in * seconds (glob) 399 1970/01/01 00:00:00 bob> 3/3 cache hits/lookups in * seconds (glob)
400 1970/01/01 00:00:00 bob> writing tags cache file with 3 heads and 1 tags 400 1970/01/01 00:00:00 bob> writing tags cache file with 3 heads and 1 tags
401 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) 401 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob)
402 402
403 $ f --size .hg/cache/hgtagsfnodes1 403 $ f --size .hg/cache/hgtagsfnodes1
404 .hg/cache/hgtagsfnodes1: size=168 404 .hg/cache/hgtagsfnodes1: size=168
411 bar 1:78391a272241 411 bar 1:78391a272241
412 412
413 $ hg blackbox -l 5 413 $ hg blackbox -l 5
414 1970/01/01 00:00:00 bob> tags 414 1970/01/01 00:00:00 bob> tags
415 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1 415 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1
416 1970/01/01 00:00:00 bob> 0/1 cache hits/lookups in * seconds (glob) 416 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob)
417 1970/01/01 00:00:00 bob> writing tags cache file with 3 heads and 1 tags 417 1970/01/01 00:00:00 bob> writing tags cache file with 3 heads and 1 tags
418 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) 418 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob)
419 $ f --size .hg/cache/hgtagsfnodes1 419 $ f --size .hg/cache/hgtagsfnodes1
420 .hg/cache/hgtagsfnodes1: size=144 420 .hg/cache/hgtagsfnodes1: size=144
421 421