equal
deleted
inserted
replaced
117 "2006-12-6" |
117 "2006-12-6" |
118 "12-6" |
118 "12-6" |
119 "12/6" |
119 "12/6" |
120 "12/6/6" (Dec 6 2006) |
120 "12/6/6" (Dec 6 2006) |
121 |
121 |
122 Lastly, there is Mercurial's internal format: |
122 Lastly, there is Mercurial's internal format:: |
123 |
123 |
124 "1165432709 0" (Wed Dec 6 13:18:29 2006 UTC) |
124 "1165432709 0" (Wed Dec 6 13:18:29 2006 UTC) |
125 |
125 |
126 This is the internal representation format for dates. unixtime is |
126 This is the internal representation format for dates. unixtime is |
127 the number of seconds since the epoch (1970-01-01 00:00 UTC). |
127 the number of seconds since the epoch (1970-01-01 00:00 UTC). |
128 offset is the offset of the local timezone, in seconds west of UTC |
128 offset is the offset of the local timezone, in seconds west of UTC |
129 (negative if the timezone is east of UTC). |
129 (negative if the timezone is east of UTC). |
359 You can customize output for any "log-like" command: log, |
359 You can customize output for any "log-like" command: log, |
360 outgoing, incoming, tip, parents, heads and glog. |
360 outgoing, incoming, tip, parents, heads and glog. |
361 |
361 |
362 Three styles are packaged with Mercurial: default (the style used |
362 Three styles are packaged with Mercurial: default (the style used |
363 when no explicit preference is passed), compact and changelog. |
363 when no explicit preference is passed), compact and changelog. |
364 Usage: |
364 Usage:: |
365 |
365 |
366 $ hg log -r1 --style changelog |
366 $ hg log -r1 --style changelog |
367 |
367 |
368 A template is a piece of text, with markup to invoke variable |
368 A template is a piece of text, with markup to invoke variable |
369 expansion: |
369 expansion:: |
370 |
370 |
371 $ hg log -r1 --template "{node}\n" |
371 $ hg log -r1 --template "{node}\n" |
372 b56ce7b07c52de7d5fd79fb89701ea538af65746 |
372 b56ce7b07c52de7d5fd79fb89701ea538af65746 |
373 |
373 |
374 Strings in curly braces are called keywords. The availability of |
374 Strings in curly braces are called keywords. The availability of |
396 |
396 |
397 The "date" keyword does not produce human-readable output. If you |
397 The "date" keyword does not produce human-readable output. If you |
398 want to use a date in your output, you can use a filter to process |
398 want to use a date in your output, you can use a filter to process |
399 it. Filters are functions which return a string based on the input |
399 it. Filters are functions which return a string based on the input |
400 variable. You can also use a chain of filters to get the desired |
400 variable. You can also use a chain of filters to get the desired |
401 output: |
401 output:: |
402 |
402 |
403 $ hg tip --template "{date|isodate}\n" |
403 $ hg tip --template "{date|isodate}\n" |
404 2008-08-21 18:22 +0000 |
404 2008-08-21 18:22 +0000 |
405 |
405 |
406 List of filters: |
406 List of filters: |