do not try non-hg branches
better error reporting