Generally speaking, I'd prefer to add proper support for --xml-output --verbose,
rather than adding new features to --machine-readable. However, this would
require to encode the line-content in hunks as binary data, e.g. via base64 or
something similar, because as far as Darcs is concerned, the file content is just
raw bytes.
Adding the patch identifier to --machine-readable is easy, but it is unclear to
me how it should be presented in the output. The so called machine-readable
format is basically just the raw encoding of patches as they are stored
internally, and that doesn't contain the "identifier" because that is merely a
hash of the patch's meta data.
|