# HG changeset patch # User timeless # Date 2016-04-14 15:18:59 # Node ID ad2cd2ef25d903cf3151683b32d2ebcd89b6b5b5 # Parent 2e58dc022caab257c9db390b6b45c6a45162d712 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. diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -583,7 +583,7 @@ class ui(object): 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 --git a/tests/test-commit-interactive.t b/tests/test-commit-interactive.t --- a/tests/test-commit-interactive.t +++ b/tests/test-commit-interactive.t @@ -291,7 +291,7 @@ Modify end of plain file with username u $ 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 --git a/tests/test-committer.t b/tests/test-committer.t --- a/tests/test-committer.t +++ b/tests/test-committer.t @@ -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