I saw several blog posts and experienced for myself that Mercurial does not save permissions on files being dragged from one repo to another. Does anyone know of a Mercurial extension that will save permissions? I assume that this cannot be done with a hook, because what does the hook know about permissions in the original repo?
Requested Development:
If the only change in the file is a permission change (for example, chmod o+r filename ), attempts to transfer the file fail with a message that the file has not changed.
If I commit a file with permissions of 600 (rw -------), then clone the repo, the same file in the clone has permissions of 664 (rw-rw-r -):
: nr@yorkie 6522 ; hg clone one two updating working directory 1 files updated, 0 files merged, 0 files removed, 0 files unresolved : nr@yorkie 6523 ; ls -l one two one: total 4 -rw------- 1 nr nr 8 Aug 18 21:50 foo two: total 4 -rw-rw-r-- 1 nr nr 8 Aug 18 21:51 foo
These examples show that hg clone does not save permissions, but hg push does not save them either.
In my application, one repo is on the public path and it is important that
mercurial file-permissions
Norman Ramsey Aug 17 '09 at 19:05 2009-08-17 19:05
source share