mercurial/revset.py
changeset 25632 015c0d1087a3
parent 25630 c88082baf693
child 25634 1ddefcfcd3e6
--- a/mercurial/revset.py	Thu Jun 18 15:42:40 2015 -0500
+++ b/mercurial/revset.py	Sat Jun 20 10:59:56 2015 -0400
@@ -391,7 +391,11 @@
 def func(repo, subset, a, b):
     if a[0] == 'symbol' and a[1] in symbols:
         return symbols[a[1]](repo, subset, b)
-    raise error.UnknownIdentifier(a[1], symbols.keys())
+
+    keep = lambda fn: getattr(fn, '__doc__', None) is not None
+
+    syms = [s for (s, fn) in symbols.items() if keep(fn)]
+    raise error.UnknownIdentifier(a[1], syms)
 
 # functions