comparison tests/test-inherit-mode.t @ 40670:bd0874977a5e stable

checkexec: create destination directory if necessary Since 460733327640, a "share" use the cache of the source repository. A side effect is that no `.hg/cache` directory exists in the "share" anymore. As a result, the checkexec logic can't use it to create its temporary file and have to use the working copy for that. This is suboptimal, it pollutes the working copy and prevents them to keep the file around in cache. We do not want to use the cache directory for the share target, it might be on a different file system. So instead, we (try to) create the directory if it is missing. This is a simple change that fixes the current behavior regression on stable. On default, we should probably ensure the proper directories are created when initializing the repository. We should also introduce a 'wcache' directory to hold cache file related to the working copy. This would clarify the cache situation regarding shares. The tests catch a couple of other affected cases.
author Boris Feld <boris.feld@octobus.net>
date Thu, 15 Nov 2018 03:09:23 +0100
parents 5abc47d4ca6b
children 90e26ef4cbb1 47e3f554df35
comparison
equal deleted inserted replaced
40656:3bc2e550f2bd 40670:bd0874977a5e
67 $ "$PYTHON" ../printmodes.py . 67 $ "$PYTHON" ../printmodes.py .
68 00700 ./.hg/ 68 00700 ./.hg/
69 00600 ./.hg/00changelog.i 69 00600 ./.hg/00changelog.i
70 00770 ./.hg/cache/ 70 00770 ./.hg/cache/
71 00660 ./.hg/cache/branch2-served 71 00660 ./.hg/cache/branch2-served
72 00711 ./.hg/cache/checkisexec
73 00777 ./.hg/cache/checklink
74 00600 ./.hg/cache/checklink-target
72 00660 ./.hg/cache/manifestfulltextcache (reporevlogstore !) 75 00660 ./.hg/cache/manifestfulltextcache (reporevlogstore !)
73 00660 ./.hg/cache/rbc-names-v1 76 00660 ./.hg/cache/rbc-names-v1
74 00660 ./.hg/cache/rbc-revs-v1 77 00660 ./.hg/cache/rbc-revs-v1
75 00660 ./.hg/dirstate 78 00660 ./.hg/dirstate
76 00660 ./.hg/fsmonitor.state (fsmonitor !) 79 00660 ./.hg/fsmonitor.state (fsmonitor !)