Mercurial > hg-stable
changeset 24801:f379428a0754
tests: fix test-tags on vfat
The unix conditional section wasn't cleaning up sufficiently.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 16 Apr 2015 20:52:37 -0500 |
parents | cde547252f2e |
children | 2ee10789d66b |
files | tests/test-tags.t |
diffstat | 1 files changed, 14 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-tags.t Thu Apr 16 20:31:44 2015 -0500 +++ b/tests/test-tags.t Thu Apr 16 20:52:37 2015 -0500 @@ -367,7 +367,6 @@ 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) $ chmod a+w .hg/cache/hgtagsfnodes1 -#endif $ rm -f .hg/cache/tags2-visible $ hg tags @@ -384,21 +383,32 @@ $ f --size .hg/cache/hgtagsfnodes1 .hg/cache/hgtagsfnodes1: size=168 + $ hg -q --config extensions.strip= strip -r 6 --no-backup +#endif + Stripping doesn't truncate the tags cache until new data is available + $ rm -f .hg/cache/hgtagsfnodes1 .hg/cache/tags2-visible + $ hg tags + tip 5:8dbfe60eff30 + bar 1:78391a272241 + + $ f --size .hg/cache/hgtagsfnodes1 + .hg/cache/hgtagsfnodes1: size=144 + $ hg -q --config extensions.strip= strip -r 5 --no-backup $ hg tags tip 4:0c192d7d5e6b bar 1:78391a272241 $ hg blackbox -l 4 - 1970/01/01 00:00:00 bob> tags - 1970/01/01 00:00:00 bob> 3/3 cache hits/lookups in * seconds (glob) + 1970/01/01 00:00:00 bob> writing 24 bytes to cache/hgtagsfnodes1 + 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 1970/01/01 00:00:00 bob> tags exited 0 after * seconds (glob) $ f --size .hg/cache/hgtagsfnodes1 - .hg/cache/hgtagsfnodes1: size=168 + .hg/cache/hgtagsfnodes1: size=120 $ echo dummy > foo $ hg commit -m throwaway3