# HG changeset patch # User Chris # Date 1467413247 18000 # Node ID a410d2232772cf9f5bdb223739e9c2ec6a211543 # Parent e90cf5cad06061cd1691ab804eebfb0a25d3c16a Fixed `hg help prompt-keywords` to display the help text diff -r e90cf5cad060 -r a410d2232772 prompt.py --- 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. -''')), +'''), )