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

login
register
mail settings
Submitter Pierre-Yves David
Date Jan. 7, 2013, 6:16 p.m.
Message ID <a4e22afc0e485f19d5da.1357582570@crater2.logilab.fr>
Download mbox | patch
Permalink /patch/486/
State Accepted
Commit e4be4e2ac8144520a6a9c8fa79cdbe6fed5e5538
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 1357444214 -3600
# Node ID a4e22afc0e485f19d5da8137c741b5cf8769cdaf
# Parent  6bae87dc0a2b5b7013700db66b63f8a0067112eb
discovery: drop the visibleheads function

It has not user left. Using filtering explicitly is easier.

Patch

diff --git a/mercurial/discovery.py b/mercurial/discovery.py
--- a/mercurial/discovery.py
+++ b/mercurial/discovery.py
@@ -335,9 +335,5 @@  def checkheads(repo, remote, outgoing, r
         raise util.Abort(error, hint=hint)
 
     # 6. Check for unsynced changes on involved branches.
     if unsynced:
         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()