obsolete: remove public revset (it's now expected to be in core)
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Sat, 07 Jan 2012 11:20:59 +0100
changeset 120 ba45bb2d35cb
parent 119 22f2b700bd59
child 121 7280eede21ea
obsolete: remove public revset (it's now expected to be in core)
hgext/obsolete.py
--- 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)