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

elson.wei at gmail.com elson.wei at gmail.com
Sun Jul 14 08:52:15 CDT 2013


# HG changeset patch
# User Wei, Elson <elson.wei at gmail.com>
# Date 1373809852 -28800
#      Sun Jul 14 21:50:52 2013 +0800
# Node ID 1ad21fa22fa565cea47b735ca7fee5c1bc590ba2
# Parent  446ad1284333c9ffee4c96d9b7e887a869314d7a
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(ui, key[1][:15])))
+            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: 749 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20130714/d2b34726/attachment.bin>


More information about the Mercurial-devel mailing list