mercurial/help.py
changeset 8159 19f22977e635
parent 8005 595baa7c726f
child 8225 46293a0c7e9f
equal deleted inserted replaced
8158:1bef3656d9fe 8159:19f22977e635
   320           the given date/time and the current date/time.
   320           the given date/time and the current date/time.
   321     - basename: Any text. Treats the text as a path, and returns the
   321     - basename: Any text. Treats the text as a path, and returns the
   322           last component of the path after splitting by the path
   322           last component of the path after splitting by the path
   323           separator (ignoring trailing seprators). For example,
   323           separator (ignoring trailing seprators). For example,
   324           "foo/bar/baz" becomes "baz" and "foo/bar//" becomes "bar".
   324           "foo/bar/baz" becomes "baz" and "foo/bar//" becomes "bar".
       
   325     - stripdir: Treat the text as path and strip a directory level, if
       
   326           possible. For example, "foo" and "foo/bar" becomes "foo".
   325     - date: Date. Returns a date in a Unix date format, including
   327     - date: Date. Returns a date in a Unix date format, including
   326           the timezone: "Mon Sep 04 15:13:13 2006 0700".
   328           the timezone: "Mon Sep 04 15:13:13 2006 0700".
   327     - domain: Any text. Finds the first string that looks like an
   329     - domain: Any text. Finds the first string that looks like an
   328           email address, and extracts just the domain component.
   330           email address, and extracts just the domain component.
   329           Example: 'User <user@example.com>' becomes 'example.com'.
   331           Example: 'User <user@example.com>' becomes 'example.com'.