##// 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 # leave the attribute unspecified.
30 # leave the attribute unspecified.
31 testedwith = 'ships-with-hg-core'
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 class gpg(object):
40 class gpg(object):
34 def __init__(self, path, key=None):
41 def __init__(self, path, key=None):
35 self.path = path
42 self.path = path
@@ -91,7 +98,7 b' class gpg(object):'
91
98
92 def newgpg(ui, **opts):
99 def newgpg(ui, **opts):
93 """create a new gpg instance"""
100 """create a new gpg instance"""
94 gpgpath = ui.config("gpg", "cmd", "gpg")
101 gpgpath = ui.config("gpg", "cmd")
95 gpgkey = opts.get('key')
102 gpgkey = opts.get('key')
96 if not gpgkey:
103 if not gpgkey:
97 gpgkey = ui.config("gpg", "key", None)
104 gpgkey = ui.config("gpg", "key", None)
General Comments 0
You need to be logged in to leave comments. Login now