Mercurial > hg
comparison tests/test-inherit-mode.t @ 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 | 47e3f554df35 |
children | d5622dfe4ba3 |
comparison
equal
deleted
inserted
replaced
40792:47e3f554df35 | 40793:64cdfcc73706 |
---|---|
40 $ umask 077 | 40 $ umask 077 |
41 | 41 |
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 |
49 store is setgid | 49 store is setgid |
50 | 50 |
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 |
57 $ mkdir dir | 58 $ mkdir dir |
58 $ touch foo dir/bar | 59 $ touch foo dir/bar |
114 group can write everything | 115 group can write everything |
115 | 116 |
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 |
122 $ umask 077 | 124 $ umask 077 |
123 $ hg -q push ../push | 125 $ hg -q push ../push |