xml style doesn't generate valid xml
Haszlakiewicz, Eric
EHASZLA at transunion.com
Mon Nov 22 21:18:02 UTC 2010
I'm continuing looking for ways to get structured, parseable data out of mercurial, this time I figured I'd try the xml style (vs. my other email about using a json style).
I noticed that the xml style doesn't work. Specifically, it generates bad output for the "extra" info attached to a changeset if you do:
hg init x && cd x
echo foo > foo
hg add foo
hg ci -u user -m change1 foo
echo foo >> foo
hg ci -u user -m change2 foo
hg up -r0
echo bar > bar
hg add bar
hg ci -u user -m barchange
hg up -r1
hg --config "extensions.hgext.transplant=" transplant 2
hg log --debug --style xml > log.out
xmllint --noout log.out
Not only does this not produce valid utf-8 output, but any characters that are less than a byte value of 0x20 get replaced with a space, so I can't even fix it up with a custom parser.
Is anyone successfully using this style? If so, how?
eric
More information about the Mercurial
mailing list