equal
deleted
inserted
replaced
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 .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 |
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/ |
|
57 00770 ./.hg/wcache/ |
56 |
58 |
57 $ mkdir dir |
59 $ mkdir dir |
58 $ touch foo dir/bar |
60 $ touch foo dir/bar |
59 $ hg ci -qAm 'add files' |
61 $ hg ci -qAm 'add files' |
60 |
62 |
67 $ "$PYTHON" ../printmodes.py . |
69 $ "$PYTHON" ../printmodes.py . |
68 00700 ./.hg/ |
70 00700 ./.hg/ |
69 00600 ./.hg/00changelog.i |
71 00600 ./.hg/00changelog.i |
70 00770 ./.hg/cache/ |
72 00770 ./.hg/cache/ |
71 00660 ./.hg/cache/branch2-served |
73 00660 ./.hg/cache/branch2-served |
72 00711 ./.hg/cache/checkisexec |
|
73 007.. ./.hg/cache/checklink (re) |
|
74 00600 ./.hg/cache/checklink-target |
|
75 00660 ./.hg/cache/manifestfulltextcache (reporevlogstore !) |
74 00660 ./.hg/cache/manifestfulltextcache (reporevlogstore !) |
76 00660 ./.hg/cache/rbc-names-v1 |
75 00660 ./.hg/cache/rbc-names-v1 |
77 00660 ./.hg/cache/rbc-revs-v1 |
76 00660 ./.hg/cache/rbc-revs-v1 |
78 00660 ./.hg/dirstate |
77 00660 ./.hg/dirstate |
79 00660 ./.hg/fsmonitor.state (fsmonitor !) |
78 00660 ./.hg/fsmonitor.state (fsmonitor !) |
100 00660 ./.hg/undo.backup.dirstate |
99 00660 ./.hg/undo.backup.dirstate |
101 00660 ./.hg/undo.bookmarks |
100 00660 ./.hg/undo.bookmarks |
102 00660 ./.hg/undo.branch |
101 00660 ./.hg/undo.branch |
103 00660 ./.hg/undo.desc |
102 00660 ./.hg/undo.desc |
104 00660 ./.hg/undo.dirstate |
103 00660 ./.hg/undo.dirstate |
|
104 00770 ./.hg/wcache/ |
|
105 00711 ./.hg/wcache/checkisexec |
|
106 007.. ./.hg/wcache/checklink (re) |
|
107 00600 ./.hg/wcache/checklink-target |
105 00700 ./dir/ |
108 00700 ./dir/ |
106 00600 ./dir/bar |
109 00600 ./dir/bar |
107 00600 ./foo |
110 00600 ./foo |
108 |
111 |
109 $ umask 007 |
112 $ umask 007 |
113 group can write everything |
116 group can write everything |
114 |
117 |
115 $ "$PYTHON" ../printmodes.py ../push |
118 $ "$PYTHON" ../printmodes.py ../push |
116 00770 ../push/.hg/ |
119 00770 ../push/.hg/ |
117 00660 ../push/.hg/00changelog.i |
120 00660 ../push/.hg/00changelog.i |
|
121 00770 ../push/.hg/cache/ |
118 00660 ../push/.hg/requires |
122 00660 ../push/.hg/requires |
119 00770 ../push/.hg/store/ |
123 00770 ../push/.hg/store/ |
|
124 00770 ../push/.hg/wcache/ |
120 |
125 |
121 $ umask 077 |
126 $ umask 077 |
122 $ hg -q push ../push |
127 $ hg -q push ../push |
123 |
128 |
124 after push |
129 after push |
150 00660 ../push/.hg/store/undo.phaseroots |
155 00660 ../push/.hg/store/undo.phaseroots |
151 00660 ../push/.hg/undo.bookmarks |
156 00660 ../push/.hg/undo.bookmarks |
152 00660 ../push/.hg/undo.branch |
157 00660 ../push/.hg/undo.branch |
153 00660 ../push/.hg/undo.desc |
158 00660 ../push/.hg/undo.desc |
154 00660 ../push/.hg/undo.dirstate |
159 00660 ../push/.hg/undo.dirstate |
|
160 00770 ../push/.hg/wcache/ |
155 |
161 |
156 |
162 |
157 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. |
158 Not all systems support setgid directories (e.g. HFS+), so |
164 Not all systems support setgid directories (e.g. HFS+), so |
159 just check that directories have the same mode. |
165 just check that directories have the same mode. |