a410d2232772

Fixed `hg help prompt-keywords` to display the help text
[view raw] [browse files]
author Chris <doktorstick@gmail.com>
date Fri, 01 Jul 2016 17:47:27 -0500
parents e90cf5cad060
children ed22ce1f3057
branches/tags (none)
files prompt.py

Changes

--- a/prompt.py	Wed Apr 20 10:15:36 2016 -0500
+++ b/prompt.py	Fri Jul 01 17:47:27 2016 -0500
@@ -16,6 +16,7 @@
 from datetime import datetime, timedelta
 from os import path
 from mercurial import extensions, commands, cmdutil, help
+from mercurial.i18n import _
 from mercurial.node import hex, short
 
 cmdtable = {}
@@ -466,8 +467,8 @@
         pass
 
 help.helptable += (
-    (['prompt-keywords', 'prompt-keywords'], ('Keywords supported by hg-prompt'),
-     (r'''hg-prompt currently supports a number of keywords.
+    (['prompt-keywords'], _('Keywords supported by hg-prompt'),
+     lambda _: r'''hg-prompt currently supports a number of keywords.
 
 Some keywords support filters.  Filters can be chained when it makes
 sense to do so.  When in doubt, try it!
@@ -646,5 +647,5 @@
      Display `^` if the current parent is not the tip of the current branch,
      otherwise nothing.  In effect, this lets you see if running `hg update`
      would do something.
-''')),
+'''),
 )