On Mon, 19 May 2008 10:49:45 +0200
Walter Franzini <[EMAIL PROTECTED]> wrote:
> The transformation implemented in change-set 1499 looks suspicious to
> me,
>
> Why the reduction is not "delete A + add B"?
Because it's not what it seems: if you look at the test case, you can
see that it's rather a problematic patch *representation*, due to a
bug in darcs (I think... already fixed [we are talking about ancient
patches]):
<summary>
<move from="Autoconf.lhs" to="Autoconf.lhs.in"/>
<add_file>
Autoconf.lhs.in
</add_file>
...
</summary>
what may have happened here is:
$ darcs add Autoconf.lhs
# ... programmer thinks, then changes his mind ...
$ darcs mv Autoconf.lhs Autoconf.lhs.in
# ...
$ darcs record
which nowadays produces:
$ cd /tmp/
$ mkdir p
$ cd p
$ darcs init
$ touch Autoconf.lhs
$ darcs add Autoconf.lhs
$ darcs mv Autoconf.lhs Autoconf.lhs.in
$ darcs rec -a -m "Add then move"
Finished recording patch 'Add then move'
$ darcs cha -s --xml
<changelog>
<patch author='[EMAIL PROTECTED]' date='20080519091835' local_date='Mon May
19 11:18:35 CEST 2008' inverted='False'
hash='20080519091835-97f81-ad02527dd5ecbea5c10de4c5eaeb5ef4e3da4d09.gz'>
<name>Add then move</name>
<summary>
<add_file>
Autoconf.lhs.in
</add_file>
</summary>
</patch>
</changelog>
Thanks a lot for reviewing!-)
ciao, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
[EMAIL PROTECTED] | -- Fortunato Depero, 1929.
_______________________________________________
Tailor mailing list
[email protected]
http://lists.zooko.com/mailman/listinfo/tailor