[darcs-devel] [issue2242] rollback mv patches confuses darcs

Owen Stephens bugs at darcs.net
Mon Sep 24 10:15:02 UTC 2012


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

$ darcs init --repo R
$ cd R
$ mkdir A 
$ touch A/foo
$ darcs rec -alm 'Add A'
 
$ darcs mv A B
$ echo -e 'line1\nline2' > B/foo
$ darcs rec -alm 'Move A -> B and change foo'
 
$ # Rollback everything in the move/change patch 
$ echo ynya | darcs roll

Gives this (incorrect) darcs wh output.

move ./B ./A
hunk ./A/foo 1
-line1
-line2
rmfile ./A/foo
rmdir ./A

What are those rmfile/rmdir prims doing there? Running with -s gives:

% darcs wh -s
./B -> ./A
R ./A/foo
R ./A/

I'll send this as a failing test. Kowey - could you tweak the test to
make it generate some 'A' entries? I couldn't do it...

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


More information about the darcs-devel mailing list