[darcs-devel] [issue2212] pending incorrectly being updated with extra changes upon darcs add

Owen Stephens bugs at darcs.net
Tue Nov 6 12:27:05 UTC 2012


Owen Stephens <darcs at owenstephens.co.uk> added the comment:

issue1332 was related to whether or not darcs should add boring files
recursively. The old test passed since it didn't properly invalidate the
index (to observe: add a call to whatsnew after the pending patch is
removed) If `darcs rev -a` is called instead of `rm
_darcs/patches/pending` then the test fails with & without this patch.

That said, there's something fishy with this patch's effects, if the
pending patch is nuked:

> darcs init --repo R
> cd R
> touch f

> darcs add f
> darcs wh

addfile ./f

> rm _darcs/patches/pending

> darcs add f
> darcs wh

addfile ./f
addfile ./f

Is this something to do with the index? The output is not duplicated if
I also `touch _darcs/index_invalid`

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


More information about the darcs-devel mailing list