[darcs-devel] [issue273] darcs replace loses, again

Pekka Pessi bugs at darcs.net
Thu Sep 28 16:18:58 PDT 2006


New submission from Pekka Pessi <ppessi at gmail.com>:

Hello all,

It looks like darcs replace foo bar foo.c foo.c works in somewhat
unexpected manner:

1) darcs checks that foo.c and foo.c does not contain bar
2) darcs changes foo to bar in foo.c
3) it again tries to change foo to bar in foo.c, but finds bar and
barfs like this

darcs failed:  Can't do replace on working!
Perhaps one of the files already contains 'bar'?
user error (replace patch to ./foo.c couldn't apply.)

and exits with 2. Well, I guess that "user error" part is apt, but
darcs could try a bit harder to detect or prune duplicates in its
argument list.

Luckily it does not trash "pending" like in #231.

----------
messages: 1010
nosy: EricKow, droundy, ppessi, tommy
status: unread
title: darcs replace loses, again

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




More information about the darcs-devel mailing list