commands: search for translated version of "DEPRECATED"
authorMartin Geisler <mg@lazybytes.net>
Sat, 24 Oct 2009 00:29:25 +0200
changeset 9636 926eba48eac9
parent 9635 5d8125bbbbf4
child 9637 64425c5a9257
commands: search for translated version of "DEPRECATED" The option description is already translated at this point, so we must search for a translation of "DEPRECATED".
mercurial/commands.py
--- a/mercurial/commands.py	Fri Oct 23 23:10:05 2009 +0200
+++ b/mercurial/commands.py	Sat Oct 24 00:29:25 2009 +0200
@@ -1604,7 +1604,7 @@
     for title, options in option_lists:
         opt_output.append(("\n%s" % title, None))
         for shortopt, longopt, default, desc in options:
-            if "DEPRECATED" in desc and not ui.verbose: continue
+            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,