help: document nonempty template filter.
authorMartin Geisler <mg@lazybytes.net>
Tue, 28 Apr 2009 17:30:00 +0200
changeset 8237 1320459daa91
parent 8236 9f53e203a09b
child 8238 f795d24aebc3
help: document nonempty template filter.
mercurial/help.py
--- 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.