##// END OF EJS Templates
cache: create `cache` directory at init time...
Boris Feld -
r40824:64cdfcc7 default
parent child Browse files
Show More
@@ -3010,6 +3010,8 b' def createrepository(ui, path, createopt'
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')
@@ -20,6 +20,7 b' Check the basic files created:'
20
20
21 $ ls .hg
21 $ ls .hg
22 00changelog.i
22 00changelog.i
23 cache
23 requires
24 requires
24 store
25 store
25
26
@@ -42,7 +42,7 b' just in case somebody has a strange $TMP'
42 $ hg init repo
42 $ hg init repo
43 $ cd repo
43 $ cd repo
44
44
45 $ chmod 0770 .hg/store
45 $ chmod 0770 .hg/store .hg/cache
46
46
47 before commit
47 before commit
48 store can be written by the group, other files cannot
48 store can be written by the group, other files cannot
@@ -51,6 +51,7 b' store is setgid'
51 $ "$PYTHON" ../printmodes.py .
51 $ "$PYTHON" ../printmodes.py .
52 00700 ./.hg/
52 00700 ./.hg/
53 00600 ./.hg/00changelog.i
53 00600 ./.hg/00changelog.i
54 00770 ./.hg/cache/
54 00600 ./.hg/requires
55 00600 ./.hg/requires
55 00770 ./.hg/store/
56 00770 ./.hg/store/
56
57
@@ -116,6 +117,7 b' group can write everything'
116 $ "$PYTHON" ../printmodes.py ../push
117 $ "$PYTHON" ../printmodes.py ../push
117 00770 ../push/.hg/
118 00770 ../push/.hg/
118 00660 ../push/.hg/00changelog.i
119 00660 ../push/.hg/00changelog.i
120 00770 ../push/.hg/cache/
119 00660 ../push/.hg/requires
121 00660 ../push/.hg/requires
120 00770 ../push/.hg/store/
122 00770 ../push/.hg/store/
121
123
General Comments 0
You need to be logged in to leave comments. Login now