[darcs-devel] [issue1281] 'move' order in darcs chan --xml -s

Miklos Vajna bugs at darcs.net
Wed Dec 24 02:04:45 UTC 2008


New submission from Miklos Vajna <vmiklos at frugalware.org>:

Hi,

Let's say you create a repo:

dr init
echo a > a
dr add a 
dr rec (1)
dr mv a b
rm b
dr rec (2)
echo a > a
echo b > b
dr add a b
dr rec (3)
rm b
dr rec (4)
dr mv a b
dr amend-rec (4)

Basically create two special patches.

(2) is about: rename A B, remove B - so B was not in the repo and after
the patch A won't be either.

(4) is about: remove B, rename A B - so A and B were in the repo and
after the patch only B will be, with the contents of A.

So you can see the order of remove and move matters a lot.

Now if you do a darcs changes --xml -s, then you *always* get the moves
first, so you can't decide what situation are you in.

The solution would be to leave the "move" commands where they are
physically in the patch and not move them to the top.

Thanks.

----------
messages: 6875
nosy: dmitry.kurochkin, kowey, simon, thorkilnaur, vmiklos
status: unread
title: 'move' order in darcs chan --xml -s

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


More information about the darcs-devel mailing list