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

pierre-yves.david at logilab.fr pierre-yves.david at logilab.fr
Mon Jan 7 12:16:10 CST 2013


# 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.

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()


More information about the Mercurial-devel mailing list