Patchwork [2,of,4] config: use single quotes around command hint

login
register
mail settings
Submitter timeless@gcc2-power8.osuosl.org
Date April 14, 2016, 3:24 p.m.
Message ID <30a86d7c44ae3e895539.1460647483@gcc2-power8.osuosl.org>
Download mbox | patch
Permalink /patch/14615/
State Accepted
Headers show

Comments

timeless@gcc2-power8.osuosl.org - April 14, 2016, 3:24 p.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1460647139 0
#      Thu Apr 14 15:18:59 2016 +0000
# Node ID 30a86d7c44ae3e895539ca8047fdd9d21ad4abfc
# Parent  036f254e2b2b5b7ded7c1d546b4b60ce7c6830f4
# EXP-Topic quotes
# Available At bb://timeless/mercurial-crew
#              hg pull bb://timeless/mercurial-crew -r 30a86d7c44ae
config: 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.

Patch

diff -r 036f254e2b2b -r 30a86d7c44ae mercurial/ui.py
--- a/mercurial/ui.py	Thu Apr 14 15:17:15 2016 +0000
+++ b/mercurial/ui.py	Thu Apr 14 15:18:59 2016 +0000
@@ -580,7 +580,7 @@ 
                 pass
         if not user:
             raise error.Abort(_('no username supplied'),
-                             hint=_('use "hg config --edit" '
+                             hint=_("use 'hg config --edit' "
                                     'to set your username'))
         if "\n" in user:
             raise error.Abort(_("username %s contains a newline\n")
diff -r 036f254e2b2b -r 30a86d7c44ae tests/test-commit-interactive.t
--- a/tests/test-commit-interactive.t	Thu Apr 14 15:17:15 2016 +0000
+++ b/tests/test-commit-interactive.t	Thu Apr 14 15:18:59 2016 +0000
@@ -291,7 +291,7 @@ 
   $ unset HGUSER
   $ hg commit -i --config ui.username= -d '8 0' -m end plain
   abort: no username supplied
-  (use "hg config --edit" to set your username)
+  (use 'hg config --edit' to set your username)
   [255]
 
 
diff -r 036f254e2b2b -r 30a86d7c44ae tests/test-committer.t
--- a/tests/test-committer.t	Thu Apr 14 15:17:15 2016 +0000
+++ b/tests/test-committer.t	Thu Apr 14 15:18:59 2016 +0000
@@ -50,7 +50,7 @@ 
   $ echo "username = " >> .hg/hgrc
   $ hg commit -m commit-1
   abort: no username supplied
-  (use "hg config --edit" to set your username)
+  (use 'hg config --edit' to set your username)
   [255]
 
 # test alternate config var