Mercurial > hg
diff mercurial/discovery.py @ 17204:4feb55e6931f
localpeer: return only visible heads and branchmap
Now that we have localpeer, we can apply filtering on heads and branchmap the
same way it's done for wireprotocol peer.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Tue, 17 Jul 2012 01:04:45 +0200 |
parents | 5884812686f7 |
children | 97eff00046de |
line wrap: on
line diff
--- a/mercurial/discovery.py Wed Jul 18 14:41:58 2012 +0200 +++ b/mercurial/discovery.py Tue Jul 17 01:04:45 2012 +0200 @@ -168,10 +168,7 @@ branches = set(repo[n].branch() for n in outgoing.missing) # 2. Check for new branches on the remote. - if remote.local(): - remotemap = phases.visiblebranchmap(remote.local()) - else: - remotemap = remote.branchmap() + remotemap = remote.branchmap() newbranches = branches - set(remotemap) if newbranches and not newbranch: # new branch requires --new-branch branchnames = ', '.join(sorted(newbranches))