# HG changeset patch # User Wei, Elson # Date 2013-07-14 13:50:52 # Node ID f9e04a4e28d08d3bbc81e14e5edf3612aece4182 # Parent 2a7fd31ac5483cb5f282286f5c91ad464510834f 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,10 @@ def getkeys(ui, repo, mygpg, sigdata, co 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