diff -r 11212babc690 -r 39d1f83eb05d mercurial/wireproto.py --- a/mercurial/wireproto.py Fri Apr 27 13:18:09 2012 -0500 +++ b/mercurial/wireproto.py Tue Apr 24 16:32:44 2012 +0200 @@ -396,7 +396,7 @@ return "".join(r) def branchmap(repo, proto): - branchmap = repo.branchmap() + branchmap = phases.visiblebranchmap(repo) heads = [] for branch, nodes in branchmap.iteritems(): branchname = urllib.quote(encoding.fromlocal(branch))