darcs

Issue 1414 wish: recognize unreadable repositories

Title wish: recognize unreadable repositories
Priority wishlist Status given-up
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, jaredj, kowey, thorkilnaur, twb
Assigned To
Topics ProbablyEasy, UI

Created on 2009-04-04.11:27:10 by twb, last changed 2017-07-30.23:54:41 by gh.

Messages
msg7573 (view) Author: twb Date: 2009-04-04.11:27:06
My /etc directory is under version control.  Because this repository
contains confidental information, _darcs is not readable by normal
users.

Currently Darcs treats /etc as "not a repository".  It would be better
if could recognize an unreadable _darcs and report something like "is
a repository, but not accessible".

Here is a transcript demonstrating the problem.

    $ sudo sh -c 'umask 077 && darcs init'
    $ ls -al
    total 0
    drwx------ 3 twb  twb   60 2009-04-04 22:26 .
    drwxrwxrwt 9 root root 600 2009-04-04 22:25 ..
    drwx------ 5 root root 140 2009-04-04 22:26 _darcs
    $ darcs show repo

    darcs failed:  Unable to "darcs show repo" here.

    You need to be in a repository directory to run this command.
msg10661 (view) Author: kowey Date: 2010-04-04.09:24:58
I suppose here we'd be implicitly assuming that anything with a _darcs
directory is a repository.  Will this actually catch a lot of cases? 
Wouldn't the _darcs directory also be invisible in a lot of these (-x on
the outer dir?).  Anyway, I guess it couldn't really hurt except maybe
in KISS terms.
History
Date User Action Args
2009-04-04 11:27:10twbcreate
2009-04-09 11:09:28koweysetpriority: wishlist
nosy: kowey, simon, twb, thorkilnaur, dmitry.kurochkin
2009-08-18 19:52:07koweysetstatus: unread -> needs-implementation
nosy: kowey, simon, twb, thorkilnaur, dmitry.kurochkin
topic: + UI
2009-08-25 17:42:53adminsetnosy: + darcs-devel, - simon
2009-08-27 14:27:24adminsetnosy: kowey, darcs-devel, twb, thorkilnaur, dmitry.kurochkin
2010-04-04 09:25:00koweysettopic: + ProbablyEasy
nosy: + jaredj
messages: + msg10661
2017-07-30 23:54:41ghsetstatus: needs-implementation -> given-up