fix tmp dir name (hg not git)
ResolveBranch support for hg