Fix hg invocations.