[PATCH 4 of 4 V4] gpg: show "Unknown key ID xxxxxxxx" when the status is ERRSIG

elson.wei at gmail.com elson.wei at gmail.com
Thu Jul 11 21:20:40 CDT 2013


# HG changeset patch
# User Wei, Elson <elson.wei at gmail.com>
# Date 1373595334 -28800
#      Fri Jul 12 10:15:34 2013 +0800
# Node ID 00864ca77dfa95d9404c897f142d87dacbd4b125
# Parent  67fe87db273db79c14b5d2c251b34b92275c691e
gpg: show "Unknown key ID xxxxxxxx" when the status is ERRSIG

diff --git a/hgext/gpg.py b/hgext/gpg.py
--- a/hgext/gpg.py
+++ b/hgext/gpg.py
@@ -122,6 +122,9 @@
     validkeys = []
     # warn for expired key and/or sigs
     for key in keys:
+        if key[0] == "ERRSIG":
+            ui.write(_("%s Unknown key ID \"%s\"\n") % (prefix, shortkey(key[1])))
+            continue
         if key[0] == "BADSIG":
             ui.write(_("%s Bad signature from \"%s\"\n") % (prefix, key[2]))
             continue
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2013-07-10_12-56-14_r19381+.diff
Type: text/x-patch
Size: 740 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20130712/0a2e8af2/attachment.bin>


More information about the Mercurial-devel mailing list