Issue1196

Title file can be listed, but not read: hg add works, hg commit then fails
Priority bug Status done-cbb
Superseder Nosy List ThurnerRupert, mpm
Assigned To Topics

Created on 2008-06-23.18:08:28 by ThurnerRupert, last changed 2008-06-23.19:15:37 by mpm.

Messages
msg6391 (view) Author: mpm Date: 2008-06-23.19:15:27
It's possible on UNIX too:

$ hg init b
$ cd b
$ touch b
$ chmod -r b
$ hg ci -Am0
adding b
trouble committing b!
abort: Permission denied: /home/mpm/b/b

If I've said I want file b in my commit, commit should obviously fail if b can't
be read.

Adding interactive bits to usually non-interactive commands is trouble too: it
will cause scripts to unexpectedly hang forever.
msg6390 (view) Author: ThurnerRupert Date: 2008-06-23.18:08:27
on windows it is possible to allow a user to list a directory, and at the same 
time disallow opening a file in this directory for reading.

it "hg adds" such a file without trouble, but bails out when doing a "hg 
commit". it would be much nicer to print a warning / question which allows to 
continue the commit anyway.

leaving non-readable files out of a commit would be a possibility also, but i 
guess it slows it down unecessarily.
History
Date User Action Args
2008-06-23 19:15:38mpmsetstatus: unread -> done-cbb
nosy: + mpm
messages: + msg6391
2008-06-23 18:08:28ThurnerRupertcreate