debugcomplete: don't list deprecated options

This commit is contained in:
Matt Mackall 2010-04-19 16:47:44 -05:00
parent 6a47111c36
commit 28f56d970a

View File

@ -802,6 +802,8 @@ def debugcomplete(ui, cmd='', **opts):
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])