Patchwork [5,of,7,Series-C] discovery: drop the visiblebranchmap function

login
register
mail settings
Submitter Pierre-Yves David
Date Jan. 7, 2013, 6:16 p.m.
Message ID <55fea9d375d89782ac3f.1357582568@crater2.logilab.fr>
Download mbox | patch
Permalink /patch/485/
State Accepted
Commit 595bd4c5b13524ecb3c21ae06304ac088f9c855c
Headers show

Comments

Pierre-Yves David - Jan. 7, 2013, 6:16 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1357408629 -3600
# Node ID 55fea9d375d89782ac3f8949b1275ee11f76d8b5
# Parent  aad94e8108f165784cb9765a128b537689c692dd
discovery: drop the visiblebranchmap function

Patch

diff --git a/mercurial/discovery.py b/mercurial/discovery.py
--- a/mercurial/discovery.py
+++ b/mercurial/discovery.py
@@ -339,10 +339,5 @@  def checkheads(repo, remote, outgoing, r
         repo.ui.warn(_("note: unsynced remote changes!\n"))
 
 def visibleheads(repo):
     """return the set of visible head of this repo"""
     return repo.filtered('unserved').heads()
-
-
-def visiblebranchmap(repo):
-    """return a branchmap for the visible set"""
-    return repo.filtered('unserved').branchmap()