mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
ui: fix extra space in username abort
This commit is contained in:
parent
7c4d60a93e
commit
ab8d3b450f
@ -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
|
||||
|
@ -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
|
||||
|
@ -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]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user