This is work in progress and I'd appreciate comments and
opinions.
This patch adds the flag --machine-readable to whatsnew.
It implies --summary, and makes lines previously shown as:
M f -N +M rP
now simply shown as:
M f
Which makes parsing by third party tools much easier
(I'm adding Darcs support to geanyvc).
Another problem solved by this change, is that (very
improbably), a file can be named "f -N" or "f +M" and
be wrongly parsed before this patch.
Apart from this, I wondered if file moves should be
shown as one add and one remove, but this is more
complicated. In cases where we do the renames y -> z
and x -> y, we should maybe show:
M y
A z
D x
This is what mercurial would do. But with Darcs this
seem to require some rewriting of the prim sequence
processed by whatsnew.. I don't think it's worth it.
Note that Bazaar (another system that really tracks
file renames) prefixes the file move lines with R (for
"rename") and the "delete" lines with D (in the output of
`bazaar status --short`). In Darcs these lines are recognizable
by the fact that they start with a space character.
1 patch for repository http://darcs.net:
patch 622d61ee9b425043c0667cf5c9877a27bad92455
Author: Guillaume Hoffmann <guillaumh@gmail.com>
Date: Tue Jan 12 10:20:44 ART 2016
* --machine-readable flag for more parseable whatsnew
Attachments
|