# HG changeset patch # User Yuya Nishihara # Date 1436691565 -32400 # Node ID 35fa7c77c754aa4d156c42abfdb61ca178468872 # Parent f976b7dc5e7b9f523d45a76aa4ed3f091ea4351e help: rewrite template examples to not use shell escaping Though they work fine even on cmd.exe, these examples could lead to misguided understanding about the template syntax. diff -r f976b7dc5e7b -r 35fa7c77c754 mercurial/help/templates.txt --- a/mercurial/help/templates.txt Sat Jun 20 18:24:11 2015 +0900 +++ b/mercurial/help/templates.txt Sun Jul 12 17:59:25 2015 +0900 @@ -96,7 +96,7 @@ - Mark the active bookmark with '*':: - $ hg log --template "{bookmarks % '{bookmark}{ifeq(bookmark, active, \"*\")} '}\n" + $ hg log --template "{bookmarks % '{bookmark}{ifeq(bookmark, active, '*')} '}\n" - Mark the working copy parent with '@':: @@ -104,7 +104,7 @@ - Show only commit descriptions that start with "template":: - $ hg log --template "{startswith(\"template\", firstline(desc))}\n" + $ hg log --template "{startswith('template', firstline(desc))}\n" - Print the first word of each line of a commit message::