# HG changeset patch # User Pierre-Yves David # Date 1357444214 -3600 # Node ID e4be4e2ac8144520a6a9c8fa79cdbe6fed5e5538 # Parent ac25d75970c8842e4d4e40729421435d2a646da9 discovery: drop the visibleheads function It has no users left. (Using filtering explicitly is easier.) diff -r ac25d75970c8 -r e4be4e2ac814 mercurial/discovery.py --- a/mercurial/discovery.py Sun Jan 06 04:48:22 2013 +0100 +++ b/mercurial/discovery.py Sun Jan 06 04:50:14 2013 +0100 @@ -337,7 +337,3 @@ # 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()