pep8
fix looking up latest commit in a branch in older versions of mercurial
completely prevent hg from writing to stdout
pep8