[darcs-devel] [issue1266] Does not warn when 'darcs init' is run inside a repository subdirectory

Ben Coburn bugs at darcs.net
Sun Dec 14 03:46:03 UTC 2008


New submission from Ben Coburn <btcoburn at silicodon.net>:

IMHO, 'darcs init' should warn when it is run in a subfolder of an existing
repository. It currently warns when you are in the folder containing '_darcs',
so it *should* warn if you are in any subfolder of the repository. Either use
the same warning, or something like "Darcs does not support nested repositories.
This is probably not what you want to do.".

For example:
mkdir foo;
cd foo;
darcs init;
mkdir bar;
cd bar;
darcs init;

To fix this, darcs needs to walk up the folder hierarchy checking each parent
folder for an '_darcs' folder.

----------
messages: 6823
nosy: btcoburn, dmitry.kurochkin, kowey, simon, thorkilnaur
priority: wishlist
status: unread
title: Does not warn when 'darcs init' is run inside a repository subdirectory
topic: UI

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1266>
__________________________________


More information about the darcs-devel mailing list