# HG changeset patch # User Martin Geisler # Date 1249223665 -7200 # Node ID 26fb5b0a4424eb2029e1287e51e8210621511cf3 # Parent 45aaf27f95b8243fcfcd056fbc9bd4cfd2525dbe help: mark literal blocks diff -r 45aaf27f95b8 -r 26fb5b0a4424 mercurial/help.py --- 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