patchbomb: use single quotes around command hint stable
authortimeless <timeless@mozdev.org>
Thu, 14 Apr 2016 15:15:49 +0000
branchstable
changeset 28981 7b188bc23942
parent 28980 b89e4457fa86
child 28982 8d407e358bee
patchbomb: use single quotes around command hint Windows command lines use double quotes to quote arguments with spaces. This change is in a series to unify around using single quotes around commands, and double quotes around interior arguments. This changeset is taken on stable for consistency with similar update done before the freeze. See 2e58dc022caa, ad2cd2ef25d9, fc1d75e7a98d and 9dcc9ed26d33.
hgext/patchbomb.py
tests/test-patchbomb.t
--- a/hgext/patchbomb.py	Sun Apr 10 01:28:52 2016 +0100
+++ b/hgext/patchbomb.py	Thu Apr 14 15:15:49 2016 +0000
@@ -572,7 +572,7 @@
                     msg %= (publicurl, missing[0])
                 revhint = ' '.join('-r %s' % h
                                   for h in repo.set('heads(%ld)', missing))
-                hint = _('use "hg push %s %s"') % (publicurl, revhint)
+                hint = _("use 'hg push %s %s'") % (publicurl, revhint)
                 raise error.Abort(msg, hint=hint)
 
     # start
--- a/tests/test-patchbomb.t	Sun Apr 10 01:28:52 2016 +0100
+++ b/tests/test-patchbomb.t	Thu Apr 14 15:15:49 2016 +0000
@@ -2874,7 +2874,7 @@
   $ echo "publicurl=$TESTTMP/t2" >> $HGRCPATH
   $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep '^#'
   abort: public url $TESTTMP/t2 is missing 3b6f1ec9dde9
-  (use "hg push $TESTTMP/t2 -r 3b6f1ec9dde9")
+  (use 'hg push $TESTTMP/t2 -r 3b6f1ec9dde9')
   [1]
 
 public missing
@@ -2897,13 +2897,13 @@
   $ echo 'publicurl=$TESTTMP/t3' >> $HGRCPATH
   $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10'
   abort: public url $TESTTMP/t3 is missing 3b6f1ec9dde9
-  (use "hg push $TESTTMP/t3 -r 3b6f1ec9dde9")
+  (use 'hg push $TESTTMP/t3 -r 3b6f1ec9dde9')
   [255]
 
 multiple heads are missing at public
 
   $ hg email --date '1980-1-1 0:1' -t foo -s test -r '2+10'
   abort: public "$TESTTMP/t3" is missing ff2c9fa2018b and 1 others
-  (use "hg push $TESTTMP/t3 -r ff2c9fa2018b -r 3b6f1ec9dde9")
+  (use 'hg push $TESTTMP/t3 -r ff2c9fa2018b -r 3b6f1ec9dde9')
   [255]