Mercurial > hg
diff mercurial/localrepo.py @ 40793:64cdfcc73706
cache: create `cache` 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:38:55 +0100 |
parents | 875d2af8cb4e |
children | d5622dfe4ba3 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Thu Nov 15 17:08:23 2018 +0100 +++ b/mercurial/localrepo.py Thu Nov 15 02:38:55 2018 +0100 @@ -3010,6 +3010,8 @@ wdirvfs.makedirs() hgvfs.makedir(notindexed=True) + if 'sharedrepo' not in createopts: + hgvfs.mkdir(b'cache') if b'store' in requirements and 'sharedrepo' not in createopts: hgvfs.mkdir(b'store')