darcs

Issue 254 Incorrect behaviour whe maybeIdentifyRepository fails

Title Incorrect behaviour whe maybeIdentifyRepository fails
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, jch, kowey, thorkilnaur, tommy, zooko
Assigned To
Topics Git

Created on 2006-08-31.03:50:02 by zooko, last changed 2009-08-27.14:05:03 by admin.

Messages
msg941 (view) Author: zooko Date: 2006-08-31.03:49:57
I am working with a linux source tree pulled through git.  I couldn't figure
out the user interface of git to simply add and record one file, so I gave up
and decided to use darcs instead:

KERN yumyum:/usr/src/linux$ darcs init
KERN yumyum:/usr/src/linux$ darcs add .config
darcs: takeLock //_darcs/lock in /: atomic_create //_darcs/lock in /: permission denied (Permission denied)

What the heck?  (There is a /_darcs, but it is not writable by me.)

After some sleuthing I've learned that if I mv .git .git-aside, then darcs
works as normal.  I just have to remember to mv it back when I want to use git.

Regards,

Zooko
msg945 (view) Author: jch Date: 2006-08-31.23:22:09
Suggested fix sent to darcs-devel.
msg974 (view) Author: jch Date: 2006-09-06.19:36:42
Hmm, there's another bug in your output which is actually more serious --
Darcs should distinguish between maybeIdentifyRepository failing because
we're not in a repo (in which case we should recurse upwards), and its
failing for a good reason.

Retitling, reopening, unsassigning.  And stuff.
msg3006 (view) Author: droundy Date: 2008-01-31.20:36:03
A look at the code for maybeIdentifyRepository suggests that this is fixed. 
Also, I removed the git support, so this particular issue won't arise.
History
Date User Action Args
2006-08-31 03:50:02zookocreate
2006-08-31 23:22:12jchsetstatus: unread -> has-patch
nosy: + jch
messages: + msg945
2006-08-31 23:25:48jchlinkissue236 superseder
2006-09-06 19:30:17jchsetstatus: has-patch -> resolved-in-unstable
nosy: droundy, jch, tommy, zooko
2006-09-06 19:36:47jchsetstatus: resolved-in-unstable -> unknown
title: presence of a .git directory caused darcs to silently and confusingly fail -> Incorrect behaviour whe maybeIdentifyRepository fails
nosy: droundy, jch, tommy, zooko
messages: + msg974
priority: feature -> bug
assignedto: jch ->
2008-01-19 05:52:41markstossetstatus: unknown -> waiting-for
nosy: + kowey, beschmi
topic: + Git
2008-01-31 20:36:05droundysetstatus: waiting-for -> resolved-in-unstable
nosy: droundy, jch, tommy, beschmi, kowey, zooko
messages: + msg3006
2008-09-04 21:29:08adminsetstatus: resolved-in-unstable -> resolved
nosy: + dagit
2009-08-06 17:35:52adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, mornfall, simon, thorkilnaur, - droundy, jch
2009-08-06 20:51:38adminsetnosy: - beschmi
2009-08-10 21:55:03adminsetnosy: + jch, - markstos, darcs-devel, jast, Serware, mornfall
2009-08-10 23:55:54adminsetnosy: - dagit
2009-08-25 17:50:00adminsetnosy: + darcs-devel, - simon
2009-08-27 14:05:03adminsetnosy: jch, tommy, kowey, darcs-devel, zooko, thorkilnaur, dmitry.kurochkin