hg branch check in prompt (adding all these checks will never slow anything down, not at all)