diff hgext/show.py @ 36034:f3d8f61c425d

gpg: print unknown key IDs in their entirety Shortening the key is nice in theory but it results in ambiguity which can be exploited. Therefore, when encountering an unknown key ID we should print the whole ID returned by gpg. This may or may not be the whole key, however it will match the user preference set in gpg configuration. Furthermore, the key ID shortening had a couple of issues: (1) it truncated the key ID (dropping the last digit and outputting only 15 hex digits) making it very hard to find the correct key on a key server (2) since only 15 digits were fed into shortkey(), it always emitted the ui.debug() warning
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Sun, 11 Feb 2018 18:32:37 -0500
parents c8e2d6ed1f9e
children e3674c2a585c
line wrap: on
line diff