darcs

Issue 273 darcs replace loses, again

Title darcs replace loses, again
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, ppessi, thorkilnaur, tommy
Assigned To
Topics

Created on 2006-09-28.23:18:58 by ppessi, last changed 2009-08-27.14:11:01 by admin.

Messages
msg1010 (view) Author: ppessi Date: 2006-09-28.23:18:52
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.
msg1051 (view) Author: kowey Date: 2006-10-03.19:57:03
Fixed by Tommy's patch
History
Date User Action Args
2006-09-28 23:18:58ppessicreate
2006-10-03 19:57:10koweysetstatus: unread -> unknown
nosy: droundy, tommy, kowey, ppessi
messages: + msg1051
2006-10-04 18:20:11tommysetstatus: unknown -> resolved-in-unstable
nosy: droundy, tommy, kowey, ppessi
2007-06-29 20:00:21tommysetstatus: resolved-in-unstable -> resolved-in-stable
nosy: + beschmi
2008-09-16 21:30:23adminsetstatus: resolved-in-stable -> resolved
nosy: + dagit
2009-08-06 17:45:04adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, zooko, mornfall, simon, thorkilnaur, - droundy, ppessi
2009-08-06 20:41:14adminsetnosy: - beschmi
2009-08-10 21:55:54adminsetnosy: + ppessi, - markstos, darcs-devel, zooko, jast, Serware, mornfall
2009-08-10 23:56:19adminsetnosy: - dagit
2009-08-25 17:57:22adminsetnosy: + darcs-devel, - simon
2009-08-27 14:11:01adminsetnosy: tommy, kowey, darcs-devel, ppessi, thorkilnaur, dmitry.kurochkin