I can get the head of the current branch via
hg head .
I can then get the data I need by copying and pasting the changeset ID from the output of that command into this one:
'hg' 'log' --'limit' '1' --'style' 'xml' --'verbose' --'rev' 'ac99e18fbca1'
The problem is that I need to do this programatically, and I'd prefer not to parse the output of hg head .
. So, can I either:
- Do this with a single command? I couldn't find anything in revsets that would work.
- Format
hg head .
to give me just the changeset ID?
Just noticed
head
accepts the--style
param.