[PATCH 3 of 4] help: use single quotes in ``template example``
Yuya Nishihara
yuya at tcha.org
Thu Oct 12 09:55:43 EDT 2017
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1507812973 -32400
# Thu Oct 12 21:56:13 2017 +0900
# Node ID b770d50a3c6256008a6ed6614b21f27e1a09df1b
# Parent a6cf3a279553d5b089c90585789033988756a24d
help: use single quotes in ``template example``
It was hard to read because ``""`` was rendered as """".
diff --git a/mercurial/help/templates.txt b/mercurial/help/templates.txt
--- a/mercurial/help/templates.txt
+++ b/mercurial/help/templates.txt
@@ -74,9 +74,9 @@ or a raw string prefix, ``r'...'``.
The dot operator can be used as a shorthand for accessing a sub item:
-- ``expr.member`` is roughly equivalent to ``expr % "{member}"`` if ``expr``
+- ``expr.member`` is roughly equivalent to ``expr % '{member}'`` if ``expr``
returns a non-list/dict. The returned value is not stringified.
-- ``dict.key`` is identical to ``get(dict, "key")``.
+- ``dict.key`` is identical to ``get(dict, 'key')``.
Aliases
=======
More information about the Mercurial-devel
mailing list