Mercurial > hg
diff tests/test-share.t @ 40792:47e3f554df35
check-exec: write file in 'wcache' instead of 'cache'
Some cache are relevant or affected by the working copy used. So the `.hg/cache`
directory is not the best place for them because multiple shared repository can
end up fighting over them.
To address this issue, we introduce a new 'wcache' directory to host this kind
of cache.
The first user are the `checkisexec` type file. These files describe property of
the working copy and fit the use-case well.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 15 Nov 2018 17:08:23 +0100 |
parents | 25b7c4cb5de1 |
children | f6d37e84d8f9 |
line wrap: on
line diff
--- a/tests/test-share.t Fri Nov 23 06:09:44 2018 +0100 +++ b/tests/test-share.t Thu Nov 15 17:08:23 2018 +0100 @@ -28,16 +28,15 @@ default 0:d3873e73d99e $ hg tags tip 0:d3873e73d99e - $ ls -1 .hg/cache || true - ls: .hg/cache: $ENOENT$ (no-execbit no-symlink !) + $ test -d .hg/cache + [1] + $ ls -1 .hg/wcache || true + ls: .hg/wcache: $ENOENT$ (no-execbit no-symlink !) checkisexec (execbit !) checklink (symlink !) checklink-target (symlink !) $ ls -1 ../repo1/.hg/cache branch2-served - checkisexec (execbit !) - checklink (symlink !) - checklink-target (symlink !) manifestfulltextcache (reporevlogstore !) rbc-names-v1 rbc-revs-v1