##// END OF EJS Templates
configitems: register the 'gpg.cmd' config
Boris Feld -
r34502:b0c42fec default
parent child Browse files
Show More
@@ -30,6 +30,13 b' command = registrar.command(cmdtable)'
30 30 # leave the attribute unspecified.
31 31 testedwith = 'ships-with-hg-core'
32 32
33 configtable = {}
34 configitem = registrar.configitem(configtable)
35
36 configitem('gpg', 'cmd',
37 default='gpg',
38 )
39
33 40 class gpg(object):
34 41 def __init__(self, path, key=None):
35 42 self.path = path
@@ -91,7 +98,7 b' class gpg(object):'
91 98
92 99 def newgpg(ui, **opts):
93 100 """create a new gpg instance"""
94 gpgpath = ui.config("gpg", "cmd", "gpg")
101 gpgpath = ui.config("gpg", "cmd")
95 102 gpgkey = opts.get('key')
96 103 if not gpgkey:
97 104 gpgkey = ui.config("gpg", "key", None)
General Comments 0
You need to be logged in to leave comments. Login now