# HG changeset patch # User Boris Feld # Date 2017-10-13 21:26:16 # Node ID bb05720913d3a0e7874b98b4af18509185dc4063 # Parent 43c78d2819d8be69a314f2128f96a1cef376e830 configitems: register the 'gpg' arbitraty key section diff --git a/hgext/gpg.py b/hgext/gpg.py --- a/hgext/gpg.py +++ b/hgext/gpg.py @@ -39,6 +39,10 @@ configitem('gpg', 'cmd', 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 sigcheck(ui, repo, rev): 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: