Fixes T4596. I misunderstood this issue and D8512 was not correct. Specifically:
- The hg log needs to be escaped, since otherwise "arcpatch-x" is interpreted as a revset.
- The hg update does not need to be escaped, since updating to a revset doesn't make sense and the command never treats its argument as a revset.
- The hg bookmark does not need to be escaped, for similar reasons.