Default Permissions When Mercurial Creates Files

If Mercurial does not track file permissions by default , how does it determine permissions for any generated files / directories?

Does he use umask? If not, what does he use?

I read the following in the list of letters :

Mercurial uses the mode of the .hg/store directory to compute a mask

but it seems a little arbitrary (if there is any explanation, I would like to hear it). Is this explained in the documentation?

+5
source share
1 answer

There seems to be no complete explanation, just a mention of this in How to Handle Multiple Committers ":

Mercurial 1.0, , umask 002 - . 022, , , .

umask , ~/.profile ...

umask 002

/etc/profile, .
/etc/profile , hg, , /etc/bash.bashrc - .

, Mercurial 1.0, .hg/store.

+2

All Articles