Mercurial > hg-stable
changeset 25004:e264d4c9629b
help: rewrite template examples to use integer literals where appropriate
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 02 May 2015 15:51:57 +0900 |
parents | 5e584edbb211 |
children | 5ddbb024c2e9 |
files | mercurial/help/templates.txt |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/help/templates.txt Sat May 02 15:49:38 2015 +0900 +++ b/mercurial/help/templates.txt Sat May 02 15:51:57 2015 +0900 @@ -67,7 +67,7 @@ - Output the description set to a fill-width of 30:: - $ hg log -r 0 --template "{fill(desc, '30')}" + $ hg log -r 0 --template "{fill(desc, 30)}" - Use a conditional to test for the default branch:: @@ -104,4 +104,4 @@ - Print the first word of each line of a commit message:: - $ hg log --template "{word(\"0\", desc)}\n" + $ hg log --template "{word(0, desc)}\n"