ui: fix extra space in username abort

This commit is contained in:
Matt Mackall 2014-02-27 15:14:37 -06:00
parent 7c4d60a93e
commit ab8d3b450f
3 changed files with 3 additions and 3 deletions

View File

@ -451,7 +451,7 @@ class ui(object):
if not user:
raise util.Abort(_('no username supplied'),
hint=_('use "hg config --edit" '
' to set your username'))
'to set your username'))
if "\n" in user:
raise util.Abort(_("username %s contains a newline\n") % repr(user))
return user

View File

@ -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]
$ rm .hg/hgrc
$ hg commit -m commit-1 2>&1

View File

@ -252,7 +252,7 @@ Modify end of plain file with username unset
$ unset HGUSER
$ hg record --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]