Mercurial > hg
diff mercurial/localrepo.py @ 40794:d5622dfe4ba3
cache: create `wcache` directory at init time
The cache directory will be needed very quickly, so it seems simpler to create
it early to make sure it has the same owner and permission than the other
directory in the repository.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 15 Nov 2018 02:46:31 +0100 |
parents | 64cdfcc73706 |
children | e1c3a2e9df59 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Thu Nov 15 02:38:55 2018 +0100 +++ b/mercurial/localrepo.py Thu Nov 15 02:46:31 2018 +0100 @@ -3012,6 +3012,7 @@ hgvfs.makedir(notindexed=True) if 'sharedrepo' not in createopts: hgvfs.mkdir(b'cache') + hgvfs.mkdir(b'wcache') if b'store' in requirements and 'sharedrepo' not in createopts: hgvfs.mkdir(b'store')