Escape '%' when writing to hgrc (
issue1199)
Fixes clone with paths containing '%'.
Patch provided by mjc.
tests: fix reported patch tool name in test-mq
Strip any path of the patch executable, which it might return on failure.
hgk: Display branch name for each head (issue 740)
In the graphical view, each head is decorated with an additonal tag
containing the branch name, if that head is not on the default branch.