changeset 8237:1320459daa91

help: document nonempty template filter.
author Martin Geisler <mg@lazybytes.net>
date Tue, 28 Apr 2009 17:30:00 +0200
parents 9f53e203a09b
children f795d24aebc3
files mercurial/help.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/help.py	Tue Apr 28 17:28:00 2009 +0200
+++ b/mercurial/help.py	Tue Apr 28 17:30:00 2009 +0200
@@ -337,6 +337,7 @@
     - fill68: Any text. Wraps the text to fit in 68 columns.
     - fill76: Any text. Wraps the text to fit in 76 columns.
     - firstline: Any text. Returns the first line of text.
+    - nonempty: Any text. Returns '(none)' if the string is empty.
     - hgdate: Date. Returns the date as a pair of numbers:
           "1157407993 25200" (Unix timestamp, timezone offset).
     - isodate: Date. Returns the date in ISO 8601 format.