[PATCH 4 of 4] help: rewrite template examples to use integer literals where appropriate

Yuya Nishihara yuya at tcha.org
Sun May 10 18:03:18 CDT 2015


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1430549517 -32400
#      Sat May 02 15:51:57 2015 +0900
# Node ID a5d32b5887c7f5eb719f7c0ce08aa928e1ab21cd
# Parent  c3e6267cfb1f263d4a559709909951af0efed9d3
help: rewrite template examples to use integer literals where appropriate

diff --git a/mercurial/help/templates.txt b/mercurial/help/templates.txt
--- a/mercurial/help/templates.txt
+++ b/mercurial/help/templates.txt
@@ -67,7 +67,7 @@ Some sample command line templates:
 
 - 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 @@ Some sample command line templates:
 
 - 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"


More information about the Mercurial-devel mailing list