commit: adjust the quoting in the examples to be Windows friendly
authorMatt Harbison <matt_harbison@yahoo.com>
Sat, 05 Dec 2015 22:19:48 -0500
changeset 27247 be7ef03d7fb6
parent 27246 b288fb2724bf
child 27248 0d5fe81320a9
commit: adjust the quoting in the examples to be Windows friendly We should probably avoid strong quotes around command line args in the examples, since cmd.exe doesn't recognize them, and it will surprise a user who cargo cults them. I don't see a way to make a rule for this, since strong quoting is OK inside command line args, like within revsets.
mercurial/commands.py
--- a/mercurial/commands.py	Fri Dec 04 15:12:11 2015 -0800
+++ b/mercurial/commands.py	Sat Dec 05 22:19:48 2015 -0500
@@ -1592,11 +1592,11 @@
 
       - commit all files ending in .py:
 
-          hg commit --include 'set:**.py'
+          hg commit --include "set:**.py"
 
       - commit all non-binary files:
 
-          hg commit --exclude 'set:binary()'
+          hg commit --exclude "set:binary()"
 
       - amend the current commit and set the date to now: