changeset 120:ba45bb2d35cb

obsolete: remove public revset (it's now expected to be in core)
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Sat, 07 Jan 2012 11:20:59 +0100
parents 22f2b700bd59
children 7280eede21ea
files hgext/obsolete.py
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/obsolete.py	Sat Jan 07 11:19:12 2012 +0100
+++ b/hgext/obsolete.py	Sat Jan 07 11:20:59 2012 +0100
@@ -111,10 +111,6 @@
 ### revset
 #############################
 
-def revsetpublic(repo, subset, x):
-    args = revset.getargs(x, 0, 0, 'publicheads takes no arguments')
-    # XXX slow stop using context
-    return [r for r in subset if repo._phaserev[r] == 0]
 
 def revsetobsolete(repo, subset, x):
     """filter obsolet entry"""
@@ -170,7 +166,6 @@
 def extsetup(ui):
 
     revset.symbols["obsolete"] = revsetobsolete
-    revset.symbols["public"] = revsetpublic
 
     extensions.wrapfunction(discovery, 'findcommonoutgoing', filterobsoleteout)