[PATCH 17 of 21] gpg: lowercase output

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


# HG changeset patch
# User Martin Geisler <mg at daimi.au.dk>
# Date 1230999321 -3600
# Node ID 03f46c1b456abbe00a820ab3e315b8a6edcc9245
# Parent  5ace95a93b96425ef1760fff81c686d46a6ac9ba
gpg: lowercase output

The first message is "No valid signature for ...", which a script
might rely on. The second change is just an informative message which
should be fine to change.

diff --git a/hgext/gpg.py b/hgext/gpg.py
--- a/hgext/gpg.py
+++ b/hgext/gpg.py
@@ -176,7 +176,7 @@
                 keys.extend(k)
 
     if not keys:
-        ui.write(_("No valid signature for %s\n") % hgnode.short(rev))
+        ui.write(_("no valid signature for %s\n") % hgnode.short(rev))
         return
 
     # print summary
@@ -223,7 +223,7 @@
 
     for n in nodes:
         hexnode = hgnode.hex(n)
-        ui.write("Signing %d:%s\n" % (repo.changelog.rev(n),
+        ui.write("signing %d:%s\n" % (repo.changelog.rev(n),
                                       hgnode.short(n)))
         # build data
         data = node2txt(repo, n, sigver)


More information about the Mercurial-devel mailing list