##// END OF EJS Templates
configitems: register the 'gpg' arbitraty key section
Boris Feld -
r34771:bb057209 default
parent child Browse files
Show More
@@ -39,6 +39,10 b" configitem('gpg', 'cmd',"
39 configitem('gpg', 'key',
39 configitem('gpg', 'key',
40 default=None,
40 default=None,
41 )
41 )
42 configitem('gpg', '.*',
43 default=None,
44 generic=True,
45 )
42
46
43 class gpg(object):
47 class gpg(object):
44 def __init__(self, path, key=None):
48 def __init__(self, path, key=None):
@@ -216,7 +220,7 b' def sigcheck(ui, repo, rev):'
216 def keystr(ui, key):
220 def keystr(ui, key):
217 """associate a string to a key (username, comment)"""
221 """associate a string to a key (username, comment)"""
218 keyid, user, fingerprint = key
222 keyid, user, fingerprint = key
219 comment = ui.config("gpg", fingerprint, None)
223 comment = ui.config("gpg", fingerprint)
220 if comment:
224 if comment:
221 return "%s (%s)" % (user, comment)
225 return "%s (%s)" % (user, comment)
222 else:
226 else:
General Comments 0
You need to be logged in to leave comments. Login now