changeset 16940:6409a5c75125

ui: lowercase "no username" warning
author Martin Geisler <mg@aragost.com>
date Tue, 12 Jun 2012 14:18:18 +0200
parents fa91ddfc3f36
children a1eb17bed550
files mercurial/ui.py tests/test-committer.t
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/ui.py	Tue Jun 12 14:18:18 2012 +0200
+++ b/mercurial/ui.py	Tue Jun 12 14:18:18 2012 +0200
@@ -409,7 +409,7 @@
         if user is None and not self.interactive():
             try:
                 user = '%s@%s' % (util.getuser(), socket.getfqdn())
-                self.warn(_("No username found, using '%s' instead\n") % user)
+                self.warn(_("no username found, using '%s' instead\n") % user)
             except KeyError:
                 pass
         if not user:
--- a/tests/test-committer.t	Tue Jun 12 14:18:18 2012 +0200
+++ b/tests/test-committer.t	Tue Jun 12 14:18:18 2012 +0200
@@ -53,7 +53,7 @@
   [255]
   $ rm .hg/hgrc
   $ hg commit -m commit-1 2>&1
-  No username found, using '[^']*' instead (re)
+  no username found, using '[^']*' instead (re)
 
   $ echo space > asdf
   $ hg commit -u ' ' -m commit-1