HgGitRepository: generalizing use of `hg_call`
This first makes hg_call more flexible and powerful, and then leverages it to reduce lots of boilerplate.
This first makes hg_call more flexible and powerful, and then leverages it to reduce lots of boilerplate.