##// END OF EJS Templates
cache: create `wcache` directory at init time...
Boris Feld -
r40825:d5622dfe default
parent child Browse files
Show More
@@ -3012,6 +3012,7 b' def createrepository(ui, path, createopt'
3012 hgvfs.makedir(notindexed=True)
3012 hgvfs.makedir(notindexed=True)
3013 if 'sharedrepo' not in createopts:
3013 if 'sharedrepo' not in createopts:
3014 hgvfs.mkdir(b'cache')
3014 hgvfs.mkdir(b'cache')
3015 hgvfs.mkdir(b'wcache')
3015
3016
3016 if b'store' in requirements and 'sharedrepo' not in createopts:
3017 if b'store' in requirements and 'sharedrepo' not in createopts:
3017 hgvfs.mkdir(b'store')
3018 hgvfs.mkdir(b'store')
@@ -212,6 +212,7 b" Make sure bundlerepo doesn't leak tempfi"
212 cache
212 cache
213 requires
213 requires
214 store
214 store
215 wcache
215
216
216 Pull ../full.hg into empty (with hook)
217 Pull ../full.hg into empty (with hook)
217
218
@@ -23,6 +23,7 b' Check the basic files created:'
23 cache
23 cache
24 requires
24 requires
25 store
25 store
26 wcache
26
27
27 Should be empty:
28 Should be empty:
28
29
@@ -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 .hg/cache
45 $ chmod 0770 .hg/store .hg/cache .hg/wcache
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
@@ -54,6 +54,7 b' store is setgid'
54 00770 ./.hg/cache/
54 00770 ./.hg/cache/
55 00600 ./.hg/requires
55 00600 ./.hg/requires
56 00770 ./.hg/store/
56 00770 ./.hg/store/
57 00770 ./.hg/wcache/
57
58
58 $ mkdir dir
59 $ mkdir dir
59 $ touch foo dir/bar
60 $ touch foo dir/bar
@@ -120,6 +121,7 b' group can write everything'
120 00770 ../push/.hg/cache/
121 00770 ../push/.hg/cache/
121 00660 ../push/.hg/requires
122 00660 ../push/.hg/requires
122 00770 ../push/.hg/store/
123 00770 ../push/.hg/store/
124 00770 ../push/.hg/wcache/
123
125
124 $ umask 077
126 $ umask 077
125 $ hg -q push ../push
127 $ hg -q push ../push
@@ -155,6 +157,7 b' group can still write everything'
155 00660 ../push/.hg/undo.branch
157 00660 ../push/.hg/undo.branch
156 00660 ../push/.hg/undo.desc
158 00660 ../push/.hg/undo.desc
157 00660 ../push/.hg/undo.dirstate
159 00660 ../push/.hg/undo.dirstate
160 00770 ../push/.hg/wcache/
158
161
159
162
160 Test that we don't lose the setgid bit when we call chmod.
163 Test that we don't lose the setgid bit when we call chmod.
@@ -1242,6 +1242,7 b' Check that share works with subrepo'
1242 ../shared/subrepo-1/.hg/hgrc
1242 ../shared/subrepo-1/.hg/hgrc
1243 ../shared/subrepo-1/.hg/requires
1243 ../shared/subrepo-1/.hg/requires
1244 ../shared/subrepo-1/.hg/sharedpath
1244 ../shared/subrepo-1/.hg/sharedpath
1245 ../shared/subrepo-1/.hg/wcache
1245 ../shared/subrepo-2
1246 ../shared/subrepo-2
1246 ../shared/subrepo-2/.hg
1247 ../shared/subrepo-2/.hg
1247 ../shared/subrepo-2/.hg/branch
1248 ../shared/subrepo-2/.hg/branch
General Comments 0
You need to be logged in to leave comments. Login now