Mercurial > hg-stable
changeset 34770:bb05720913d3
configitems: register the 'gpg' arbitraty key section
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 13 Oct 2017 23:26:16 +0200 |
parents | 43c78d2819d8 |
children | 28b7034a916a |
files | hgext/gpg.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/gpg.py Fri Oct 13 23:23:48 2017 +0200 +++ b/hgext/gpg.py Fri Oct 13 23:26:16 2017 +0200 @@ -39,6 +39,10 @@ configitem('gpg', 'key', default=None, ) +configitem('gpg', '.*', + default=None, + generic=True, +) class gpg(object): def __init__(self, path, key=None): @@ -216,7 +220,7 @@ def keystr(ui, key): """associate a string to a key (username, comment)""" keyid, user, fingerprint = key - comment = ui.config("gpg", fingerprint, None) + comment = ui.config("gpg", fingerprint) if comment: return "%s (%s)" % (user, comment) else: