[PATCH 3 of 3 V3] gpg: show "Unknown key ID xxxxxxxx" when the status is ERRSIG
elson.wei at gmail.com
elson.wei at gmail.com
Wed Jul 10 05:04:16 UTC 2013
# HG changeset patch
# User Wei, Elson <elson.wei at gmail.com>
# Date 1373432623 -28800
# Wed Jul 10 13:03:43 2013 +0800
# Node ID e332bf401b891fe79696994057ee25d175828bc1
# Parent f4f121d7fce92354ed72782a7432ed0648ca5743
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: 736 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20130710/1765761d/attachment-0002.bin>
More information about the Mercurial-devel
mailing list