Mercurial > hg-stable
changeset 9290:26fb5b0a4424
help: mark literal blocks
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sun, 02 Aug 2009 16:34:25 +0200 |
parents | 45aaf27f95b8 |
children | cd5b6a11b607 |
files | mercurial/help.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/help.py Fri Jul 31 23:49:47 2009 +0200 +++ b/mercurial/help.py Sun Aug 02 16:34:25 2009 +0200 @@ -119,9 +119,9 @@ "12/6" "12/6/6" (Dec 6 2006) - Lastly, there is Mercurial's internal format: + Lastly, there is Mercurial's internal format:: - "1165432709 0" (Wed Dec 6 13:18:29 2006 UTC) + "1165432709 0" (Wed Dec 6 13:18:29 2006 UTC) This is the internal representation format for dates. unixtime is the number of seconds since the epoch (1970-01-01 00:00 UTC). @@ -361,12 +361,12 @@ Three styles are packaged with Mercurial: default (the style used when no explicit preference is passed), compact and changelog. - Usage: + Usage:: $ hg log -r1 --style changelog A template is a piece of text, with markup to invoke variable - expansion: + expansion:: $ hg log -r1 --template "{node}\n" b56ce7b07c52de7d5fd79fb89701ea538af65746 @@ -398,7 +398,7 @@ want to use a date in your output, you can use a filter to process it. Filters are functions which return a string based on the input variable. You can also use a chain of filters to get the desired - output: + output:: $ hg tip --template "{date|isodate}\n" 2008-08-21 18:22 +0000