That may be the answer. That said, their addition of git commands to the debug output isn't outputting terribly useful info. I wonder if that is intentional. Especially since the output differs with the presence of the -r flag. (I will research.) The --debug flag is used to get hg to output the full sha. Perhaps there is a better way to get all req'd info. On Sep 17, 2012 9:34 AM, "Frank Terbeck" wrote: > Seth House wrote: > [...] > > The output for the newer Mercurial is below: > > > > % hg --debug id -i -n -b > > nested: git --version > > nested: git config --bool core.bare > > nested: git rev-parse HEAD > > nested: git update-index -q --refresh > > nested: git diff-index --quiet HEAD > > 4a0f6db684a9b73ca8da117d2e368d309385bc20 1 default > > ...so, what's the solution? read data until there is no more to read and > then use the data from the last line of the output? > > Regards, Frank >