[PATCH 11 of 21] lowercase ui.status output

Martin Geisler mg at daimi.au.dk
Sat Jan 3 10:40:09 CST 2009


# HG changeset patch
# User Martin Geisler <mg at daimi.au.dk>
# Date 1230999321 -3600
# Node ID f4ec1cda51b9179cf69ce2be030dd4d23f09aff0
# Parent  83f22cdd0f74f8217731f55cc70c589a6b1a6192
lowercase ui.status output

This affects the convert and patchbomb extensions, the finddate
function in mercurial.cmdutil and the debug debuginstall command.

diff --git a/hgext/convert/convcmd.py b/hgext/convert/convcmd.py
--- a/hgext/convert/convcmd.py
+++ b/hgext/convert/convcmd.py
@@ -186,7 +186,7 @@
     def writeauthormap(self):
         authorfile = self.authorfile
         if authorfile:
-           self.ui.status(_('Writing author map file %s\n') % authorfile)
+           self.ui.status(_('writing author map file %s\n') % authorfile)
            ofile = open(authorfile, 'w+')
            for author in self.authors:
                ofile.write("%s=%s\n" % (author, self.authors[author]))
@@ -203,7 +203,7 @@
                 dstauthor = dstauthor.strip()
                 if srcauthor in self.authors and dstauthor != self.authors[srcauthor]:
                     self.ui.status(
-                        _('Overriding mapping for author %s, was %s, will be %s\n')
+                        _('overriding mapping for author %s, was %s, will be %s\n')
                         % (srcauthor, self.authors[srcauthor], dstauthor))
                 else:
                     self.ui.debug(_('mapping author %s to %s\n')
diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -410,7 +410,7 @@
         if bcc:
             m['Bcc'] = ', '.join(bcc)
         if opts.get('test'):
-            ui.status(_('Displaying '), subj, ' ...\n')
+            ui.status(_('displaying '), subj, ' ...\n')
             ui.flush()
             if 'PAGER' in os.environ:
                 fp = util.popen(os.environ['PAGER'], 'w')
@@ -426,7 +426,7 @@
             if fp is not ui:
                 fp.close()
         elif opts.get('mbox'):
-            ui.status(_('Writing '), subj, ' ...\n')
+            ui.status(_('writing '), subj, ' ...\n')
             fp = open(opts.get('mbox'), 'In-Reply-To' in m and 'ab+' or 'wb+')
             generator = email.Generator.Generator(fp, mangle_from_=True)
             date = util.datestr(start_time, '%a %b %d %H:%M:%S %Y')
@@ -437,7 +437,7 @@
         else:
             if not sendmail:
                 sendmail = mail.connect(ui)
-            ui.status(_('Sending '), subj, ' ...\n')
+            ui.status(_('sending '), subj, ' ...\n')
             # Exim does not remove the Bcc field
             del m['Bcc']
             fp = cStringIO.StringIO()
diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -937,7 +937,7 @@
                 results[rev] = d
         elif st == 'iter':
             if rev in results:
-                ui.status(_("Found revision %s from %s\n") %
+                ui.status(_("found revision %s from %s\n") %
                           (rev, util.datestr(results[rev])))
                 return str(rev)
 
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -860,7 +860,7 @@
     problems = 0
 
     # encoding
-    ui.status(_("Checking encoding (%s)...\n") % util._encoding)
+    ui.status(_("checking encoding (%s)...\n") % util._encoding)
     try:
         util.fromlocal("test")
     except util.Abort, inst:
@@ -869,7 +869,7 @@
         problems += 1
 
     # compiled modules
-    ui.status(_("Checking extensions...\n"))
+    ui.status(_("checking extensions...\n"))
     try:
         import bdiff, mpatch, base85
     except Exception, inst:
@@ -879,7 +879,7 @@
         problems += 1
 
     # templates
-    ui.status(_("Checking templates...\n"))
+    ui.status(_("checking templates...\n"))
     try:
         import templater
         t = templater.templater(templater.templatepath("map-cmdline.default"))
@@ -889,7 +889,7 @@
         problems += 1
 
     # patch
-    ui.status(_("Checking patch...\n"))
+    ui.status(_("checking patch...\n"))
     patchproblems = 0
     a = "1\n2\n3\n4\n"
     b = "1\n2\n3\ninsert\n4\n"
@@ -927,7 +927,7 @@
     os.unlink(fd)
 
     # editor
-    ui.status(_("Checking commit editor...\n"))
+    ui.status(_("checking commit editor...\n"))
     editor = ui.geteditor()
     cmdpath = util.find_exe(editor) or util.find_exe(editor.split()[0])
     if not cmdpath:
@@ -940,7 +940,7 @@
             problems += 1
 
     # check username
-    ui.status(_("Checking username...\n"))
+    ui.status(_("checking username...\n"))
     user = os.environ.get("HGUSER")
     if user is None:
         user = ui.config("ui", "username")
@@ -952,7 +952,7 @@
         ui.write(_(" (specify a username in your .hgrc file)\n"))
 
     if not problems:
-        ui.status(_("No problems detected\n"))
+        ui.status(_("no problems detected\n"))
     else:
         ui.write(_("%s problems detected,"
                    " please check your install!\n") % problems)
diff --git a/tests/test-install.out b/tests/test-install.out
--- a/tests/test-install.out
+++ b/tests/test-install.out
@@ -1,7 +1,7 @@
-Checking encoding (ascii)...
-Checking extensions...
-Checking templates...
-Checking patch...
-Checking commit editor...
-Checking username...
-No problems detected
+checking encoding (ascii)...
+checking extensions...
+checking templates...
+checking patch...
+checking commit editor...
+checking username...
+no problems detected
diff --git a/tests/test-patchbomb.out b/tests/test-patchbomb.out
--- a/tests/test-patchbomb.out
+++ b/tests/test-patchbomb.out
@@ -2,7 +2,7 @@
 This patch series consists of 1 patches.
 
 
-Displaying [PATCH] a ...
+displaying [PATCH] a ...
 Content-Type: text/plain; charset="us-ascii"
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
@@ -34,7 +34,7 @@
 Write the introductory message for the patch series.
 
 
-Displaying [PATCH 0 of 2] test ...
+displaying [PATCH 0 of 2] test ...
 Content-Type: text/plain; charset="us-ascii"
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
@@ -46,7 +46,7 @@
 Cc: bar
 
 
-Displaying [PATCH 1 of 2] a ...
+displaying [PATCH 1 of 2] a ...
 Content-Type: text/plain; charset="us-ascii"
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
@@ -73,7 +73,7 @@
 @@ -0,0 +1,1 @@
 +a
 
-Displaying [PATCH 2 of 2] b ...
+displaying [PATCH 2 of 2] b ...
 Content-Type: text/plain; charset="us-ascii"
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
@@ -106,15 +106,15 @@
 Write the introductory message for the patch series.
 
 
-Writing [PATCH 0 of 2] test ...
-Writing [PATCH 1 of 2] a ...
-Writing [PATCH 2 of 2] b ...
+writing [PATCH 0 of 2] test ...
+writing [PATCH 1 of 2] a ...
+writing [PATCH 2 of 2] b ...
 adding c
 % test bundle and description
 searching for changes
 1 changesets found
 
-Displaying test ...
+displaying test ...
 Content-Type: multipart/mixed; boundary="===
 MIME-Version: 1.0
 Subject: test
@@ -152,12 +152,12 @@
 adding utf
 % no mime encoding for email --test
 % md5sum of 8-bit output
-ad877786716d09fd7843cf0ed5e3d2a8  mailtest
+e5cc54e82d985a2e1fbae7cd2b822480  mailtest
 % mime encoded mbox
 This patch series consists of 1 patches.
 
 
-Writing [PATCH] charset=utf-8; content-transfer-encoding: base64 ...
+writing [PATCH] charset=utf-8; content-transfer-encoding: base64 ...
 From quux Thu Jan 01 00:04:01 1970
 Content-Type: text/plain; charset="utf-8"
 MIME-Version: 1.0
@@ -188,7 +188,7 @@
 This patch series consists of 1 patches.
 
 
-Writing [PATCH] charset=us-ascii; content-transfer-encoding: 8bit ...
+writing [PATCH] charset=us-ascii; content-transfer-encoding: 8bit ...
 % md5sum of 8-bit output
 90fae277a4a85255e8262174fcefb59f  mboxfix
 % test diffstat for single patch
@@ -200,7 +200,7 @@
  1 files changed, 1 insertions(+), 0 deletions(-)
 
 
-Displaying [PATCH] test ...
+displaying [PATCH] test ...
 Content-Type: text/plain; charset="us-ascii"
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
@@ -252,7 +252,7 @@
 Write the introductory message for the patch series.
 
 
-Displaying [PATCH 0 of 2] test ...
+displaying [PATCH 0 of 2] test ...
 Content-Type: text/plain; charset="us-ascii"
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
@@ -268,7 +268,7 @@
  b |  1 +
  2 files changed, 2 insertions(+), 0 deletions(-)
 
-Displaying [PATCH 1 of 2] a ...
+displaying [PATCH 1 of 2] a ...
 Content-Type: text/plain; charset="us-ascii"
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
@@ -299,7 +299,7 @@
 @@ -0,0 +1,1 @@
 +a
 
-Displaying [PATCH 2 of 2] b ...
+displaying [PATCH 2 of 2] b ...
 Content-Type: text/plain; charset="us-ascii"
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
@@ -334,7 +334,7 @@
 This patch series consists of 1 patches.
 
 
-Displaying [PATCH] test ...
+displaying [PATCH] test ...
 Content-Type: multipart/mixed; boundary="===
 MIME-Version: 1.0
 Subject: [PATCH] test
@@ -372,7 +372,7 @@
 Write the introductory message for the patch series.
 
 
-Displaying [PATCH 0 of 2] test ...
+displaying [PATCH 0 of 2] test ...
 Content-Type: text/plain; charset="us-ascii"
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
@@ -384,7 +384,7 @@
 Cc: bar
 
 
-Displaying [PATCH 1 of 2] a ...
+displaying [PATCH 1 of 2] a ...
 Content-Type: multipart/mixed; boundary="===
 MIME-Version: 1.0
 Subject: [PATCH 1 of 2] a
@@ -417,7 +417,7 @@
 +a
 
 --===
-Displaying [PATCH 2 of 2] b ...
+displaying [PATCH 2 of 2] b ...
 Content-Type: multipart/mixed; boundary="===
 MIME-Version: 1.0
 Subject: [PATCH 2 of 2] b
@@ -454,7 +454,7 @@
 This patch series consists of 1 patches.
 
 
-Displaying [PATCH] test ...
+displaying [PATCH] test ...
 Content-Type: multipart/mixed; boundary="===
 MIME-Version: 1.0
 Subject: [PATCH] test
@@ -501,7 +501,7 @@
 Write the introductory message for the patch series.
 
 
-Displaying [PATCH 0 of 2] test ...
+displaying [PATCH 0 of 2] test ...
 Content-Type: text/plain; charset="us-ascii"
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
@@ -513,7 +513,7 @@
 Cc: bar
 
 
-Displaying [PATCH 1 of 2] a ...
+displaying [PATCH 1 of 2] a ...
 Content-Type: multipart/mixed; boundary="===
 MIME-Version: 1.0
 Subject: [PATCH 1 of 2] a
@@ -555,7 +555,7 @@
 +a
 
 --===
-Displaying [PATCH 2 of 2] b ...
+displaying [PATCH 2 of 2] b ...
 Content-Type: multipart/mixed; boundary="===
 MIME-Version: 1.0
 Subject: [PATCH 2 of 2] b
@@ -604,7 +604,7 @@
 Write the introductory message for the patch series.
 
 
-Displaying [PATCH 0 of 1] test ...
+displaying [PATCH 0 of 1] test ...
 Content-Type: text/plain; charset="us-ascii"
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
@@ -616,7 +616,7 @@
 Cc: bar
 
 
-Displaying [PATCH 1 of 1] c ...
+displaying [PATCH 1 of 1] c ...
 Content-Type: text/plain; charset="us-ascii"
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
@@ -650,7 +650,7 @@
 Write the introductory message for the patch series.
 
 
-Displaying [PATCH 0 of 2] test ...
+displaying [PATCH 0 of 2] test ...
 Content-Type: text/plain; charset="us-ascii"
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
@@ -662,7 +662,7 @@
 Cc: bar
 
 
-Displaying [PATCH 1 of 2] a ...
+displaying [PATCH 1 of 2] a ...
 Content-Type: text/plain; charset="us-ascii"
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
@@ -689,7 +689,7 @@
 @@ -0,0 +1,1 @@
 +a
 
-Displaying [PATCH 2 of 2] b ...
+displaying [PATCH 2 of 2] b ...
 Content-Type: text/plain; charset="us-ascii"
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
@@ -721,7 +721,7 @@
 This patch series consists of 1 patches.
 
 
-Displaying [PATCH] test ...
+displaying [PATCH] test ...
 Content-Type: multipart/mixed; boundary="===
 MIME-Version: 1.0
 Subject: [PATCH] test
@@ -759,7 +759,7 @@
 Write the introductory message for the patch series.
 
 
-Displaying [PATCH 0 of 2] test ...
+displaying [PATCH 0 of 2] test ...
 Content-Type: text/plain; charset="us-ascii"
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
@@ -771,7 +771,7 @@
 Cc: bar
 
 
-Displaying [PATCH 1 of 2] a ...
+displaying [PATCH 1 of 2] a ...
 Content-Type: multipart/mixed; boundary="===
 MIME-Version: 1.0
 Subject: [PATCH 1 of 2] a
@@ -804,7 +804,7 @@
 +a
 
 --===
-Displaying [PATCH 2 of 2] b ...
+displaying [PATCH 2 of 2] b ...
 Content-Type: multipart/mixed; boundary="===
 MIME-Version: 1.0
 Subject: [PATCH 2 of 2] b


More information about the Mercurial-devel mailing list