[darcs-devel] [issue9] darcs --commands lists add outside a repo

VMiklos bugs at darcs.net
Wed Nov 16 08:14:53 PST 2005


New submission from VMiklos <vmiklos at frugalware.org>:

> On Mon, Nov 14, 2005 at 09:24:50PM +0100, VMiklos wrote:
> > till now (1.0.4 release) i had a simple script:
> > if darcs --commands 2>&1|grep -q add; then
> >         echo "inside a repo"
> > else
> >         echo "outside a repo"
> > fi
> > 
> > but now (with 1.0.4) it reports always "inside a repo", as darcs --commands lists
> > "add" outside a repo, too
> > 
> > is there any reason why it does? maybe this is a bug?
> 
> Yes, this looks like a bug.  Would you mind reporting it to the BTS? A
> quick look suggests that amInRepository' is calling findRepository' rather
> than itself recursively, and I think that's the bug.  But that code's a bit
> subtle, so I'd prefer to have someone else also take a look at it (which
> would hopefully be the result of reporting it to bugs at darcs.net).  You can
> quote me in the bug report...
> -- 
> David Roundy
> http://www.darcs.net

udv / greetings,
VMiklos

----------
messages: 23
nosy: droundy, tommy, vmiklos
status: unread
title: darcs --commands lists add outside a repo

____________________________________
Darcs issue tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue9>
____________________________________




More information about the darcs-devel mailing list