Show More
@@ -36,6 +36,9 b' configitem = registrar.configitem(config' | |||||
36 | configitem('gpg', 'cmd', |
|
36 | configitem('gpg', 'cmd', | |
37 | default='gpg', |
|
37 | default='gpg', | |
38 | ) |
|
38 | ) | |
|
39 | configitem('gpg', 'key', | |||
|
40 | default=None, | |||
|
41 | ) | |||
39 |
|
42 | |||
40 | class gpg(object): |
|
43 | class gpg(object): | |
41 | def __init__(self, path, key=None): |
|
44 | def __init__(self, path, key=None): | |
@@ -101,7 +104,7 b' def newgpg(ui, **opts):' | |||||
101 | gpgpath = ui.config("gpg", "cmd") |
|
104 | gpgpath = ui.config("gpg", "cmd") | |
102 | gpgkey = opts.get('key') |
|
105 | gpgkey = opts.get('key') | |
103 | if not gpgkey: |
|
106 | if not gpgkey: | |
104 |
gpgkey = ui.config("gpg", "key" |
|
107 | gpgkey = ui.config("gpg", "key") | |
105 | return gpg(gpgpath, gpgkey) |
|
108 | return gpg(gpgpath, gpgkey) | |
106 |
|
109 | |||
107 | def sigwalk(repo): |
|
110 | def sigwalk(repo): |
General Comments 0
You need to be logged in to leave comments.
Login now