[PATCH clowncopter] commit: adjust the quoting in the examples to be Windows friendly

Matt Harbison mharbison72 at gmail.com
Sun Dec 6 04:23:23 UTC 2015


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1449371988 18000
#      Sat Dec 05 22:19:48 2015 -0500
# Node ID 8f7a64c53d0ebb9717c8e011f753c182e29b2320
# Parent  4af56d6452d5127db44bf946b5053582e16e49ba
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.

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -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:
 


More information about the Mercurial-devel mailing list