Provide abstraction for hg operation.