Mercurial > hg-stable
changeset 8159:19f22977e635
help: document stripdir template filter
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Fri, 24 Apr 2009 19:39:27 +0200 |
parents | 1bef3656d9fe |
children | 094e0d982c8a |
files | mercurial/help.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/help.py Fri Apr 24 18:37:44 2009 +0200 +++ b/mercurial/help.py Fri Apr 24 19:39:27 2009 +0200 @@ -322,6 +322,8 @@ last component of the path after splitting by the path separator (ignoring trailing seprators). For example, "foo/bar/baz" becomes "baz" and "foo/bar//" becomes "bar". + - stripdir: Treat the text as path and strip a directory level, if + possible. For example, "foo" and "foo/bar" becomes "foo". - date: Date. Returns a date in a Unix date format, including the timezone: "Mon Sep 04 15:13:13 2006 0700". - domain: Any text. Finds the first string that looks like an