darcs

Issue 2612 darcs replace gets lost in pending

Title darcs replace gets lost in pending
Priority bug Status unknown
Milestone Resolved in
Superseder Nosy List bf
Assigned To
Topics

Created on 2018-11-21.11:44:41 by bf, last changed 2018-11-22.10:00:08 by bf.

Messages
msg20547 (view) Author: bf Date: 2018-11-21.11:44:39
To repeat:

echo hello world > foo
darcs add foo
darcs replace hello goodbye foo
darcs whatsnew

I expected to see:

addfile ./foo
hunk ./foo 1
+hello world
replace ./foo [A-Za-z_0-9] hello goodbye

but got:

addfile ./foo
hunk ./foo 1
+goodbye world

So Darcs has coalesced the replace with the hunk. I think it should not
do that.
msg20549 (view) Author: bf Date: 2018-11-22.10:00:06
> So Darcs has coalesced the replace with the hunk. I think it should not
> do that.

More thuthfully, Darcs has commuted the hunk with the replace and then
cancelled the replace after the addfile.

So this is not a bug, but a feature. I am not fully sure it's a feature
i like, though.
History
Date User Action Args
2018-11-21 11:44:41bfcreate
2018-11-22 10:00:08bfsetmessages: + msg20549