# HG changeset patch # User Martin Geisler # Date 1257715884 -3600 # Node ID fdde523e86f1ca5c864c3aed14575cf252e8a1c9 # Parent 342f1099aabc960b0bc2d09ccb79a8a9fbeca022 Convert help text to reST format. diff -r 342f1099aabc -r fdde523e86f1 prompt.py --- a/prompt.py Sun Nov 08 15:55:18 2009 -0500 +++ b/prompt.py Sun Nov 08 22:31:24 2009 +0100 @@ -42,19 +42,19 @@ '''get repository information for use in a shell prompt Take a string and output it for use in a shell prompt. You can use - keywords in curly braces: + keywords in curly braces:: $ hg prompt "currently on {branch}" currently on default - You can also use an extended form of any keyword: + You can also use an extended form of any keyword:: {optional text here{keyword}more optional text} This will expand the inner {keyword} and output it along with the extra text only if the {keyword} expands successfully. This is useful if you have a keyword that may not always apply to the current state and you - have some text that you would like to see only if it is appropriate: + have some text that you would like to see only if it is appropriate:: $ hg prompt "currently at {bookmark}" currently at @@ -327,4 +327,4 @@ ('', 'cache-outgoing', None, 'used internally by hg-prompt'), ], 'hg prompt STRING') -} \ No newline at end of file +}