config: use single quotes around command hint
authortimeless <timeless@mozdev.org>
Thu, 14 Apr 2016 15:18:59 +0000
changeset 28962 ad2cd2ef25d9
parent 28961 2e58dc022caa
child 28963 fc1d75e7a98d
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.
mercurial/ui.py
tests/test-commit-interactive.t
tests/test-committer.t
--- a/mercurial/ui.py	Thu Apr 14 15:17:15 2016 +0000
+++ b/mercurial/ui.py	Thu Apr 14 15:18:59 2016 +0000
@@ -583,7 +583,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")
--- 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]
 
 
--- 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