Do some trivial cleanup of the _hgcmd method.

Not all these parameters were used, and the name itself was kind of annoying.
Simple cleanup.

Testing done: Ran unit tests

Reviewed at https://reviews.reviewboard.org/r/5117/