diff mercurial/ui.py @ 9781:951730b2b8ba

ui: refer to "hg help config" when no username is set
author Martin Geisler <mg@lazybytes.net>
date Sat, 07 Nov 2009 22:13:09 +0100
parents 1b1b33ae5a24
children 9e7b2c49d25d
line wrap: on
line diff
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -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