# HG changeset patch # User Matt Mackall # Date 1161815897 18000 # Node ID 5c57a5a17963c5603a66909ca92234da597370ee # Parent f536d1019c8fc2c87088463a4f05029e8284c2e2 Hide deprecated flags in help unless verbose diff -r f536d1019c8f -r 5c57a5a17963 mercurial/commands.py --- a/mercurial/commands.py Wed Oct 25 16:45:39 2006 -0500 +++ b/mercurial/commands.py Wed Oct 25 17:38:17 2006 -0500 @@ -563,6 +563,7 @@ for title, options in option_lists: opt_output.append(("\n%s:\n" % title, None)) for shortopt, longopt, default, desc in options: + if "DEPRECATED" in desc and not ui.verbose: continue opt_output.append(("%2s%s" % (shortopt and "-%s" % shortopt, longopt and " --%s" % longopt), "%s%s" % (desc,