- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如果 Mercurial does not track file permissions默认情况下,它如何决定它创建的任何文件/目录的权限?
是否使用umask
?如果不是,它有什么用?
我有 read in the mail list下列:
Mercurial uses the mode of the .hg/store directory to compute a mask
最佳答案
似乎没有任何完整的解释,只是在“How To Handle Multiple Committers”页面中提到了它:
If you are using a version of Mercurial older than 1.0, it's important that each user's
umask
be set to002
or something similar. If it's set to022
, group write privileges will be masked off for files that users create, causing other users to be unable to modify them.You can change the default
umask
for a user by editing their~/.profile
and adding the line...
umask 002
Alternatively, you can edit
/etc/profile
to change the system-wide settings.
Changing the/etc/profile
will not work if people check in stuff with thehg
command, as that file isn't read by non-interactive shells,/etc/bash.bashrc
is a better place to put the system-wide settings.Otherwise since Mercurial 1.0, the default permission is inherited from .hg/store.
关于mercurial - Mercurial 创建文件时的默认权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8547964/
我是一名优秀的程序员,十分优秀!