ui: refer to "hg help config" when no username is set
authorMartin Geisler <mg@lazybytes.net>
Sat, 07 Nov 2009 22:13:09 +0100
changeset 9786 951730b2b8ba
parent 9785 b52f0f221325
child 9787 b1dad6b4dfae
ui: refer to "hg help config" when no username is set
mercurial/ui.py
tests/test-committer.out
tests/test-install.out
--- a/mercurial/ui.py	Sat Nov 07 22:12:50 2009 +0100
+++ b/mercurial/ui.py	Sat Nov 07 22:13:09 2009 +0100
@@ -186,7 +186,7 @@
             except KeyError:
                 pass
         if not user:
-            raise util.Abort(_("Please specify a username."))
+            raise util.Abort(_('no username supplied (see "hg help config")'))
         if "\n" in user:
             raise util.Abort(_("username %s contains a newline\n") % repr(user))
         return user
--- a/tests/test-committer.out	Sat Nov 07 22:12:50 2009 +0100
+++ b/tests/test-committer.out	Sat Nov 07 22:13:09 2009 +0100
@@ -22,7 +22,7 @@
 date:        Mon Jan 12 13:46:40 1970 +0000
 summary:     commit-1
 
-abort: Please specify a username.
+abort: no username supplied (see "hg help config")
 No username found, using user@host instead
 transaction abort!
 rollback completed
--- a/tests/test-install.out	Sat Nov 07 22:12:50 2009 +0100
+++ b/tests/test-install.out	Sat Nov 07 22:13:09 2009 +0100
@@ -13,6 +13,6 @@
 Checking patch...
 Checking commit editor...
 Checking username...
- Please specify a username.
+ no username supplied (see "hg help config")
  (specify a username in your .hgrc file)
 1 problems detected, please check your install!