[PATCH 2 of 4 STABLE] doc: use double quotation mark to quote arguments in examples for Windows users

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Thu Oct 24 11:22:37 CDT 2013


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1382631258 -32400
#      Fri Oct 25 01:14:18 2013 +0900
# Branch stable
# Node ID 8db99b8d6ea124c2ba8189e7f245d1ba6ce4b940
# Parent  8019f4138b90923da8da25ddfd52262af8f66f19
doc: use double quotation mark to quote arguments in examples for Windows users

On Windows, only double quotation mark can quote command line
arguments.

So, this patch uses double quotation mark to quote command line
arguments in all examples of online help document.

diff --git a/hgext/churn.py b/hgext/churn.py
--- a/hgext/churn.py
+++ b/hgext/churn.py
@@ -103,16 +103,16 @@
     Examples::
 
       # display count of changed lines for every committer
-      hg churn -t '{author|email}'
+      hg churn -t "{author|email}"
 
       # display daily activity graph
-      hg churn -f '%H' -s -c
+      hg churn -f "%H" -s -c
 
       # display activity of developers by month
-      hg churn -f '%Y-%m' -s -c
+      hg churn -f "%Y-%m" -s -c
 
       # display count of lines changed in every year
-      hg churn -f '%Y' -s
+      hg churn -f "%Y" -s
 
     It is possible to map alternate email addresses to a main address
     by providing a file using the following format::
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -556,7 +556,7 @@
 
       - skip all revisions that do not touch directories ``foo`` or ``bar``::
 
-          hg bisect --skip '!( file("path:foo") & file("path:bar") )'
+          hg bisect --skip "!( file('path:foo') & file('path:bar') )"
 
       - forget the current bisection::
 
@@ -568,7 +568,7 @@
           hg bisect --reset
           hg bisect --bad 34
           hg bisect --good 12
-          hg bisect --command 'make && make tests'
+          hg bisect --command "make && make tests"
 
       - see all changesets whose states are already known in the current
         bisection::
diff --git a/mercurial/help/phases.txt b/mercurial/help/phases.txt
--- a/mercurial/help/phases.txt
+++ b/mercurial/help/phases.txt
@@ -79,6 +79,6 @@
 
  - resynchronize draft changesets relative to a remote repository::
 
-     hg phase -fd 'outgoing(URL)'
+     hg phase -fd "outgoing(URL)"
 
 See :hg:`help phase` for more information on manually manipulating phases.


More information about the Mercurial-devel mailing list