[issue3178] Incorrect 'hg status' after permissions change when running as a different user
Mathias De Maré
bugs at mercurial.selenic.com
Tue Jan 3 04:37:30 CST 2012
New submission from Mathias De Maré <mathias.demare at gmail.com>:
If I change only the permissions of a particular file in my repository, I
can see the change with 'hg status'.
However, if I login as a different user and check with hg status, I can't.
This is because 'checkexec' is executed in dirstate.py. checkexec apparently
creates a file in the current directory and tries to change its permissions
(to check if exec permissions are supported). Of course this fails, because
the other user doesn't have the required access rights.
This seems like an inconsistency, and quite confusing.
To reproduce:
hg init testrepo
cd testrepo
touch foo
hg add foo
hg commit -m "Added foo."
chmod +x foo
hg status
M foo
---
su - otheruser
hg status
----------
messages: 18466
nosy: Mathiasdm
priority: bug
status: unread
title: Incorrect 'hg status' after permissions change when running as a different user
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3178>
____________________________________________________
More information about the Mercurial-devel
mailing list