File permissions

Robert Bauck Hamar r.b.hamar at usit.uio.no
Tue Aug 11 07:34:06 CDT 2009


*Pat Josh:
>I cloned a copy of repository from my team gate and I changed file 
>permission for one file in my local workspace.

Which file permissions? Mercurial only tracks execute permissions.

>Now 'hg status' doesn't show this file as modified. The only change to 
>this file is the permission. Any idea why this happens?

* Is the inotify extension enabled?
* Did you change any other permissions than the execute permission?

>How can I commit only the file permission change to the repository?

$ hg init
$ echo echo foo > a.sh
$ hg add a.sh
$ hg ci -m test
$ hg manifest -v
644   a.sh
$ chmod 755 a.sh
$ hg st
M a.sh
$ hg ci -m test
$ hg manifest -v
755 * a.sh

If you want any other permissions tracked, the place to do it is in your 
Makefile or install script.

-- 
Robert Bauck Hamar
USIT/SAPP/GT - Cerebrum
http://www.uio.no/sok?person=hamar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial/attachments/20090811/ac2be722/attachment.pgp 


More information about the Mercurial mailing list