Hg branches

This could fail if the name of the branch contains strange characters. I'm not
sure how to fix this correctly (which characters to escape), but putting the
branch name into single apostrophe should improve the situation.

Also reverse(0::<branch>) is equal to <branch>::0