comparison mercurial/discovery.py @ 18284:e4be4e2ac814

discovery: drop the visibleheads function It has no users left. (Using filtering explicitly is easier.)
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Sun, 06 Jan 2013 04:50:14 +0100
parents ac25d75970c8
children 2502a15e033d
comparison
equal deleted inserted replaced
18283:ac25d75970c8 18284:e4be4e2ac814
335 raise util.Abort(error, hint=hint) 335 raise util.Abort(error, hint=hint)
336 336
337 # 6. Check for unsynced changes on involved branches. 337 # 6. Check for unsynced changes on involved branches.
338 if unsynced: 338 if unsynced:
339 repo.ui.warn(_("note: unsynced remote changes!\n")) 339 repo.ui.warn(_("note: unsynced remote changes!\n"))
340
341 def visibleheads(repo):
342 """return the set of visible head of this repo"""
343 return repo.filtered('unserved').heads()