Mercurial > public > mercurial-scm > hg-stable
diff mercurial/help.py @ 20743:05267e6e94dd
help: filter out deprecated options with untranslated descriptions
When using a different language than English, deprecated options were only
removed from the output of `hg help anycmd` when "DEPRECATED" in the options
description was translated.
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Mon, 17 Feb 2014 07:39:53 +0100 |
parents | 02c303f64917 |
children | be87397f98c9 |
line wrap: on
line diff
--- a/mercurial/help.py Wed Dec 04 20:38:27 2013 -0800 +++ b/mercurial/help.py Mon Feb 17 07:39:53 2014 +0100 @@ -41,7 +41,7 @@ shortopt, longopt, default, desc = option optlabel = _("VALUE") # default label - if _("DEPRECATED") in desc and not verbose: + if not verbose and ("DEPRECATED" in desc or _("DEPRECATED") in desc): continue so = ''