debugcomplete: don't list deprecated options
authorMatt Mackall <mpm@selenic.com>
Mon, 19 Apr 2010 16:47:44 -0500
changeset 10958 021d5ac3bec0
parent 10957 0d5f139b23c1
child 10959 d1f4657f55e4
debugcomplete: don't list deprecated options
mercurial/commands.py
--- a/mercurial/commands.py	Sun Apr 18 18:18:19 2010 -0400
+++ b/mercurial/commands.py	Mon Apr 19 16:47:44 2010 -0500
@@ -802,6 +802,8 @@
             otables.append(entry[1])
         for t in otables:
             for o in t:
+                if "(DEPRECATED)" in o[3]:
+                    continue
                 if o[0]:
                     options.append('-%s' % o[0])
                 options.append('--%s' % o[1])