Mercurial > hg
diff mercurial/help/templates.txt @ 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 | 76c0b4cfa039 |
children | f26efa4f0eff |
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"