comparison mercurial/help.py @ 8237:1320459daa91

help: document nonempty template filter.
author Martin Geisler <mg@lazybytes.net>
date Tue, 28 Apr 2009 17:30:00 +0200
parents 46293a0c7e9f
children 08c93b07f5ad
comparison
equal deleted inserted replaced
8236:9f53e203a09b 8237:1320459daa91
335 - escape: Any text. Replaces the special XML/XHTML characters "&", 335 - escape: Any text. Replaces the special XML/XHTML characters "&",
336 "<" and ">" with XML entities. 336 "<" and ">" with XML entities.
337 - fill68: Any text. Wraps the text to fit in 68 columns. 337 - fill68: Any text. Wraps the text to fit in 68 columns.
338 - fill76: Any text. Wraps the text to fit in 76 columns. 338 - fill76: Any text. Wraps the text to fit in 76 columns.
339 - firstline: Any text. Returns the first line of text. 339 - firstline: Any text. Returns the first line of text.
340 - nonempty: Any text. Returns '(none)' if the string is empty.
340 - hgdate: Date. Returns the date as a pair of numbers: 341 - hgdate: Date. Returns the date as a pair of numbers:
341 "1157407993 25200" (Unix timestamp, timezone offset). 342 "1157407993 25200" (Unix timestamp, timezone offset).
342 - isodate: Date. Returns the date in ISO 8601 format. 343 - isodate: Date. Returns the date in ISO 8601 format.
343 - obfuscate: Any text. Returns the input text rendered as a 344 - obfuscate: Any text. Returns the input text rendered as a
344 sequence of XML entities. 345 sequence of XML entities.