Mercurial > hg
changeset 20580:b75a23eec9c9
ui: fix extra space in username abort
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 27 Feb 2014 15:14:37 -0600 |
parents | 625533523c9e |
children | 18ca31bb114f |
files | mercurial/ui.py tests/test-committer.t tests/test-record.t |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/ui.py Thu Feb 27 14:58:44 2014 -0600 +++ b/mercurial/ui.py Thu Feb 27 15:14:37 2014 -0600 @@ -451,7 +451,7 @@ 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
--- a/tests/test-committer.t Thu Feb 27 14:58:44 2014 -0600 +++ b/tests/test-committer.t Thu Feb 27 15:14:37 2014 -0600 @@ -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
--- a/tests/test-record.t Thu Feb 27 14:58:44 2014 -0600 +++ b/tests/test-record.t Thu Feb 27 15:14:37 2014 -0600 @@ -252,7 +252,7 @@ $ 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]