Skip to content
Snippets Groups Projects
Commit 35fa7c77c754 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

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.
parent f976b7dc5e7b
No related branches found
No related tags found
No related merge requests found
......@@ -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::
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment