comparison tests/test-tags.t @ 26185:e8f9dffca36f

blackbox: add pid to output This adds the process id to the line header for the blackbox output. This is useful for distinguishing processes when using the blackbox on a server and many processes are writing to the blackbox at once.
author Durham Goode <durham@fb.com>
date Mon, 07 Sep 2015 11:31:44 -0700
parents 3b1fc40626d8
children ab6468270b83
comparison
equal deleted inserted replaced
26184:327d09f0b5d4 26185:e8f9dffca36f
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 5 139 $ hg blackbox -l 5
140 1970/01/01 00:00:00 bob> identify 140 1970/01/01 00:00:00 bob (*)> identify (glob)
141 1970/01/01 00:00:00 bob> writing 48 bytes to cache/hgtagsfnodes1 141 1970/01/01 00:00:00 bob (*)> writing 48 bytes to cache/hgtagsfnodes1 (glob)
142 1970/01/01 00:00:00 bob> 0/1 cache hits/lookups in * seconds (glob) 142 1970/01/01 00:00:00 bob (*)> 0/1 cache hits/lookups in * seconds (glob)
143 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags 143 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob)
144 1970/01/01 00:00:00 bob> identify exited 0 after ?.?? seconds (glob) 144 1970/01/01 00:00:00 bob (*)> identify exited 0 after ?.?? seconds (glob)
145 145
146 Failure to acquire lock results in no write 146 Failure to acquire lock results in no write
147 147
148 $ rm -f .hg/cache/tags2-visible .hg/cache/hgtagsfnodes1 148 $ rm -f .hg/cache/tags2-visible .hg/cache/hgtagsfnodes1
149 $ echo 'foo:1' > .hg/wlock 149 $ echo 'foo:1' > .hg/wlock
150 $ hg identify 150 $ hg identify
151 b9154636be93 tip 151 b9154636be93 tip
152 $ hg blackbox -l 5 152 $ hg blackbox -l 5
153 1970/01/01 00:00:00 bob> identify 153 1970/01/01 00:00:00 bob (*)> identify (glob)
154 1970/01/01 00:00:00 bob> not writing .hg/cache/hgtagsfnodes1 because lock cannot be acquired 154 1970/01/01 00:00:00 bob (*)> not writing .hg/cache/hgtagsfnodes1 because lock cannot be acquired (glob)
155 1970/01/01 00:00:00 bob> 0/1 cache hits/lookups in * seconds (glob) 155 1970/01/01 00:00:00 bob (*)> 0/1 cache hits/lookups in * seconds (glob)
156 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags 156 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob)
157 1970/01/01 00:00:00 bob> identify exited 0 after * seconds (glob) 157 1970/01/01 00:00:00 bob (*)> identify exited 0 after * seconds (glob)
158 158
159 $ fnodescacheexists 159 $ fnodescacheexists
160 no fnodes cache 160 no fnodes cache
161 161
162 $ rm .hg/wlock 162 $ rm .hg/wlock
347 $ hg tags 347 $ hg tags
348 tip 5:8dbfe60eff30 348 tip 5:8dbfe60eff30
349 bar 1:78391a272241 349 bar 1:78391a272241
350 350
351 $ hg blackbox -l 5 351 $ hg blackbox -l 5
352 1970/01/01 00:00:00 bob> tags 352 1970/01/01 00:00:00 bob (*)> tags (glob)
353 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1 353 1970/01/01 00:00:00 bob (*)> writing 24 bytes to cache/hgtagsfnodes1 (glob)
354 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob) 354 1970/01/01 00:00:00 bob (*)> 2/3 cache hits/lookups in * seconds (glob)
355 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags 355 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob)
356 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) 356 1970/01/01 00:00:00 bob (*)> tags exited 0 after * seconds (glob)
357 357
358 #if unix-permissions no-root 358 #if unix-permissions no-root
359 Errors writing to .hgtags fnodes cache are silently ignored 359 Errors writing to .hgtags fnodes cache are silently ignored
360 360
361 $ echo dummy2 > foo 361 $ echo dummy2 > foo
367 $ hg tags 367 $ hg tags
368 tip 6:b968051b5cf3 368 tip 6:b968051b5cf3
369 bar 1:78391a272241 369 bar 1:78391a272241
370 370
371 $ hg blackbox -l 5 371 $ hg blackbox -l 5
372 1970/01/01 00:00:00 bob> tags 372 1970/01/01 00:00:00 bob (*)> tags (glob)
373 1970/01/01 00:00:00 bob> couldn't write cache/hgtagsfnodes1: [Errno 13] Permission denied: '$TESTTMP/t2/.hg/cache/hgtagsfnodes1' 373 1970/01/01 00:00:00 bob (*)> couldn't write cache/hgtagsfnodes1: [Errno 13] Permission denied: '$TESTTMP/t2/.hg/cache/hgtagsfnodes1' (glob)
374 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob) 374 1970/01/01 00:00:00 bob (*)> 2/3 cache hits/lookups in * seconds (glob)
375 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags 375 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob)
376 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) 376 1970/01/01 00:00:00 bob (*)> tags exited 0 after * seconds (glob)
377 377
378 $ chmod a+w .hg/cache/hgtagsfnodes1 378 $ chmod a+w .hg/cache/hgtagsfnodes1
379 379
380 $ rm -f .hg/cache/tags2-visible 380 $ rm -f .hg/cache/tags2-visible
381 $ hg tags 381 $ hg tags
382 tip 6:b968051b5cf3 382 tip 6:b968051b5cf3
383 bar 1:78391a272241 383 bar 1:78391a272241
384 384
385 $ hg blackbox -l 5 385 $ hg blackbox -l 5
386 1970/01/01 00:00:00 bob> tags 386 1970/01/01 00:00:00 bob (*)> tags (glob)
387 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1 387 1970/01/01 00:00:00 bob (*)> writing 24 bytes to cache/hgtagsfnodes1 (glob)
388 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob) 388 1970/01/01 00:00:00 bob (*)> 2/3 cache hits/lookups in * seconds (glob)
389 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags 389 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob)
390 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) 390 1970/01/01 00:00:00 bob (*)> tags exited 0 after * seconds (glob)
391 391
392 $ f --size .hg/cache/hgtagsfnodes1 392 $ f --size .hg/cache/hgtagsfnodes1
393 .hg/cache/hgtagsfnodes1: size=168 393 .hg/cache/hgtagsfnodes1: size=168
394 394
395 $ hg -q --config extensions.strip= strip -r 6 --no-backup 395 $ hg -q --config extensions.strip= strip -r 6 --no-backup
409 $ hg tags 409 $ hg tags
410 tip 4:0c192d7d5e6b 410 tip 4:0c192d7d5e6b
411 bar 1:78391a272241 411 bar 1:78391a272241
412 412
413 $ hg blackbox -l 4 413 $ hg blackbox -l 4
414 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1 414 1970/01/01 00:00:00 bob (*)> writing 24 bytes to cache/hgtagsfnodes1 (glob)
415 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob) 415 1970/01/01 00:00:00 bob (*)> 2/3 cache hits/lookups in * seconds (glob)
416 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags 416 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob)
417 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) 417 1970/01/01 00:00:00 bob (*)> tags exited 0 after * seconds (glob)
418 418
419 $ f --size .hg/cache/hgtagsfnodes1 419 $ f --size .hg/cache/hgtagsfnodes1
420 .hg/cache/hgtagsfnodes1: size=120 420 .hg/cache/hgtagsfnodes1: size=120
421 421
422 $ echo dummy > foo 422 $ echo dummy > foo
425 $ hg tags 425 $ hg tags
426 tip 5:035f65efb448 426 tip 5:035f65efb448
427 bar 1:78391a272241 427 bar 1:78391a272241
428 428
429 $ hg blackbox -l 5 429 $ hg blackbox -l 5
430 1970/01/01 00:00:00 bob> tags 430 1970/01/01 00:00:00 bob (*)> tags (glob)
431 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1 431 1970/01/01 00:00:00 bob (*)> writing 24 bytes to cache/hgtagsfnodes1 (glob)
432 1970/01/01 00:00:00 bob> 2/3 cache hits/lookups in * seconds (glob) 432 1970/01/01 00:00:00 bob (*)> 2/3 cache hits/lookups in * seconds (glob)
433 1970/01/01 00:00:00 bob> writing .hg/cache/tags2-visible with 1 tags 433 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob)
434 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) 434 1970/01/01 00:00:00 bob (*)> tags exited 0 after * seconds (glob)
435 $ f --size .hg/cache/hgtagsfnodes1 435 $ f --size .hg/cache/hgtagsfnodes1
436 .hg/cache/hgtagsfnodes1: size=144 436 .hg/cache/hgtagsfnodes1: size=144
437 437
438 $ hg -q --config extensions.strip= strip -r 5 --no-backup 438 $ hg -q --config extensions.strip= strip -r 5 --no-backup
439 439