remote-hg: simplify branch_tip()