Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
40792:47e3f554df35 | 40793:64cdfcc73706 |
---|---|
3008 | 3008 |
3009 if not wdirvfs.exists(): | 3009 if not wdirvfs.exists(): |
3010 wdirvfs.makedirs() | 3010 wdirvfs.makedirs() |
3011 | 3011 |
3012 hgvfs.makedir(notindexed=True) | 3012 hgvfs.makedir(notindexed=True) |
3013 if 'sharedrepo' not in createopts: | |
3014 hgvfs.mkdir(b'cache') | |
3013 | 3015 |
3014 if b'store' in requirements and 'sharedrepo' not in createopts: | 3016 if b'store' in requirements and 'sharedrepo' not in createopts: |
3015 hgvfs.mkdir(b'store') | 3017 hgvfs.mkdir(b'store') |
3016 | 3018 |
3017 # We create an invalid changelog outside the store so very old | 3019 # We create an invalid changelog outside the store so very old |