# HG changeset patch # User Matt Mackall # Date 2014-02-27 21:14:37 # Node ID b75a23eec9c9f9c2dc0cff67cf7c261344a2db7f # Parent 625533523c9ec4b758cac93100e190623f5c6345 ui: fix extra space in username abort diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -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 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] $ rm .hg/hgrc $ hg commit -m commit-1 2>&1 diff --git a/tests/test-record.t b/tests/test-record.t --- a/tests/test-record.t +++ b/tests/test-record.t @@ -252,7 +252,7 @@ Modify end of plain file with username u $ 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]