Refactor branch_tip that relies on recent versions of mercurial