Mercurial extension for branch management