[darcs-users] Question about xml --summary output
Lele Gaifax
lele at nautilus.homeip.net
Mon Jul 20 12:47:14 UTC 2009
On Mon, 20 Jul 2009 10:51:02 +0200
jh granarolo <jhgranarolo at hotmail.fr> wrote:
> It seems there is indeed a reordering, now is this wanted or is this
> a bug ?
Yes, the fact that darcs rearranges the hunks, at least in presence of
--xml, always surprised me! In particular, it always shows "moves"
before anything else.
> Here is what I get from 'darcs annotate -p 'patchname' ' :
>
> hunk ./META 1
> -description = "Tools for Ocsigen"
> -version = "0.3.x"
> -requires = "netstring"
> -archive(byte) = "ocsimore.cma"
> rmfile ./META
> addfile ./META1
> move ./META1 ./META.in
> addfile ./META2
> move ./META2 ./META2.in
>
> Now with 'darcs annotate --summary -p 'patchname' ':
>
> ./META1 -> ./META.in
> ./META2 -> ./META2.in
> R ./META
> M ./META.in +4
> A ./META1
> A ./META2
> R ./META2.in
Now that I know about "annotate -p", I'm tempted to redo the
tailor/trac-darcs parsers reading from there instead of digesting the
XML... ! Both of them implement a somewhat different logic to reorder
the hunks in a sensible way... and sometime they don't get it right!
ciao, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele at nautilus.homeip.net | -- Fortunato Depero, 1929.
More information about the darcs-users
mailing list