--- a/tests/test-tags.t Mon Feb 22 14:43:14 2016 -0800
+++ b/tests/test-tags.t Wed Feb 24 20:04:32 2016 +0000
@@ -137,12 +137,12 @@
$ hg identify
b9154636be93 tip
$ hg blackbox -l 6
- 1970/01/01 00:00:00 bob (*)> identify (glob)
- 1970/01/01 00:00:00 bob (*)> writing 48 bytes to cache/hgtagsfnodes1 (glob)
- 1970/01/01 00:00:00 bob (*)> 0/1 cache hits/lookups in * seconds (glob)
- 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob)
- 1970/01/01 00:00:00 bob (*)> identify exited 0 after * seconds (glob)
- 1970/01/01 00:00:00 bob (*)> blackbox -l 6 (glob)
+ 1970/01/01 00:00:00 bob (5000)> identify
+ 1970/01/01 00:00:00 bob (5000)> writing 48 bytes to cache/hgtagsfnodes1
+ 1970/01/01 00:00:00 bob (5000)> 0/1 cache hits/lookups in * seconds (glob)
+ 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags
+ 1970/01/01 00:00:00 bob (5000)> identify exited 0 after * seconds (glob)
+ 1970/01/01 00:00:00 bob (5000)> blackbox -l 6
Failure to acquire lock results in no write
@@ -151,12 +151,12 @@
$ hg identify
b9154636be93 tip
$ hg blackbox -l 6
- 1970/01/01 00:00:00 bob (*)> identify (glob)
- 1970/01/01 00:00:00 bob (*)> not writing .hg/cache/hgtagsfnodes1 because lock cannot be acquired (glob)
- 1970/01/01 00:00:00 bob (*)> 0/1 cache hits/lookups in * seconds (glob)
- 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob)
- 1970/01/01 00:00:00 bob (*)> identify exited 0 after * seconds (glob)
- 1970/01/01 00:00:00 bob (*)> blackbox -l 6 (glob)
+ 1970/01/01 00:00:00 bob (5000)> identify
+ 1970/01/01 00:00:00 bob (5000)> not writing .hg/cache/hgtagsfnodes1 because lock cannot be acquired
+ 1970/01/01 00:00:00 bob (5000)> 0/1 cache hits/lookups in * seconds (glob)
+ 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags
+ 1970/01/01 00:00:00 bob (5000)> identify exited 0 after * seconds (glob)
+ 1970/01/01 00:00:00 bob (5000)> blackbox -l 6
$ fnodescacheexists
no fnodes cache
@@ -351,12 +351,12 @@
bar 1:78391a272241
$ hg blackbox -l 6
- 1970/01/01 00:00:00 bob (*)> tags (glob)
- 1970/01/01 00:00:00 bob (*)> writing 24 bytes to cache/hgtagsfnodes1 (glob)
- 1970/01/01 00:00:00 bob (*)> 2/3 cache hits/lookups in * seconds (glob)
- 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob)
- 1970/01/01 00:00:00 bob (*)> tags exited 0 after * seconds (glob)
- 1970/01/01 00:00:00 bob (*)> blackbox -l 6 (glob)
+ 1970/01/01 00:00:00 bob (5000)> tags
+ 1970/01/01 00:00:00 bob (5000)> writing 24 bytes to cache/hgtagsfnodes1
+ 1970/01/01 00:00:00 bob (5000)> 2/3 cache hits/lookups in * seconds (glob)
+ 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags
+ 1970/01/01 00:00:00 bob (5000)> tags exited 0 after * seconds (glob)
+ 1970/01/01 00:00:00 bob (5000)> blackbox -l 6
#if unix-permissions no-root
Errors writing to .hgtags fnodes cache are silently ignored
@@ -372,12 +372,12 @@
bar 1:78391a272241
$ hg blackbox -l 6
- 1970/01/01 00:00:00 bob (*)> tags (glob)
- 1970/01/01 00:00:00 bob (*)> couldn't write cache/hgtagsfnodes1: [Errno 13] Permission denied: '$TESTTMP/t2/.hg/cache/hgtagsfnodes1' (glob)
- 1970/01/01 00:00:00 bob (*)> 2/3 cache hits/lookups in * seconds (glob)
- 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob)
- 1970/01/01 00:00:00 bob (*)> tags exited 0 after * seconds (glob)
- 1970/01/01 00:00:00 bob (*)> blackbox -l 6 (glob)
+ 1970/01/01 00:00:00 bob (5000)> tags
+ 1970/01/01 00:00:00 bob (5000)> couldn't write cache/hgtagsfnodes1: [Errno 13] Permission denied: '$TESTTMP/t2/.hg/cache/hgtagsfnodes1' (glob)
+ 1970/01/01 00:00:00 bob (5000)> 2/3 cache hits/lookups in * seconds (glob)
+ 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags
+ 1970/01/01 00:00:00 bob (5000)> tags exited 0 after * seconds (glob)
+ 1970/01/01 00:00:00 bob (5000)> blackbox -l 6
$ chmod a+w .hg/cache/hgtagsfnodes1
@@ -387,12 +387,12 @@
bar 1:78391a272241
$ hg blackbox -l 6
- 1970/01/01 00:00:00 bob (*)> tags (glob)
- 1970/01/01 00:00:00 bob (*)> writing 24 bytes to cache/hgtagsfnodes1 (glob)
- 1970/01/01 00:00:00 bob (*)> 2/3 cache hits/lookups in * seconds (glob)
- 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob)
- 1970/01/01 00:00:00 bob (*)> tags exited 0 after * seconds (glob)
- 1970/01/01 00:00:00 bob (*)> blackbox -l 6 (glob)
+ 1970/01/01 00:00:00 bob (5000)> tags
+ 1970/01/01 00:00:00 bob (5000)> writing 24 bytes to cache/hgtagsfnodes1
+ 1970/01/01 00:00:00 bob (5000)> 2/3 cache hits/lookups in * seconds (glob)
+ 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags
+ 1970/01/01 00:00:00 bob (5000)> tags exited 0 after * seconds (glob)
+ 1970/01/01 00:00:00 bob (5000)> blackbox -l 6
$ f --size .hg/cache/hgtagsfnodes1
.hg/cache/hgtagsfnodes1: size=168
@@ -416,11 +416,11 @@
bar 1:78391a272241
$ hg blackbox -l 5
- 1970/01/01 00:00:00 bob (*)> writing 24 bytes to cache/hgtagsfnodes1 (glob)
- 1970/01/01 00:00:00 bob (*)> 2/3 cache hits/lookups in * seconds (glob)
- 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob)
- 1970/01/01 00:00:00 bob (*)> tags exited 0 after * seconds (glob)
- 1970/01/01 00:00:00 bob (*)> blackbox -l 5 (glob)
+ 1970/01/01 00:00:00 bob (5000)> writing 24 bytes to cache/hgtagsfnodes1
+ 1970/01/01 00:00:00 bob (5000)> 2/3 cache hits/lookups in * seconds (glob)
+ 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags
+ 1970/01/01 00:00:00 bob (5000)> tags exited 0 after * seconds (glob)
+ 1970/01/01 00:00:00 bob (5000)> blackbox -l 5
$ f --size .hg/cache/hgtagsfnodes1
.hg/cache/hgtagsfnodes1: size=120
@@ -433,12 +433,12 @@
bar 1:78391a272241
$ hg blackbox -l 6
- 1970/01/01 00:00:00 bob (*)> tags (glob)
- 1970/01/01 00:00:00 bob (*)> writing 24 bytes to cache/hgtagsfnodes1 (glob)
- 1970/01/01 00:00:00 bob (*)> 2/3 cache hits/lookups in * seconds (glob)
- 1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob)
- 1970/01/01 00:00:00 bob (*)> tags exited 0 after * seconds (glob)
- 1970/01/01 00:00:00 bob (*)> blackbox -l 6 (glob)
+ 1970/01/01 00:00:00 bob (5000)> tags
+ 1970/01/01 00:00:00 bob (5000)> writing 24 bytes to cache/hgtagsfnodes1
+ 1970/01/01 00:00:00 bob (5000)> 2/3 cache hits/lookups in * seconds (glob)
+ 1970/01/01 00:00:00 bob (5000)> writing .hg/cache/tags2-visible with 1 tags
+ 1970/01/01 00:00:00 bob (5000)> tags exited 0 after * seconds (glob)
+ 1970/01/01 00:00:00 bob (5000)> blackbox -l 6
$ f --size .hg/cache/hgtagsfnodes1
.hg/cache/hgtagsfnodes1: size=144