Show More
@@ -52,6 +52,7 b' from mercurial.i18n import _' | |||
|
52 | 52 | from mercurial import ( |
|
53 | 53 | error, |
|
54 | 54 | httpconnection, |
|
55 | registrar, | |
|
55 | 56 | url, |
|
56 | 57 | util, |
|
57 | 58 | ) |
@@ -63,6 +64,13 b' ERRMAX = 128' | |||
|
63 | 64 | |
|
64 | 65 | _executable = _mountpoint = _service = None |
|
65 | 66 | |
|
67 | configtable = {} | |
|
68 | configitem = registrar.configitem(configtable) | |
|
69 | ||
|
70 | configitem('factotum', 'executable', | |
|
71 | default='/bin/auth/factotum', | |
|
72 | ) | |
|
73 | ||
|
66 | 74 | def auth_getkey(self, params): |
|
67 | 75 | if not self.ui.interactive(): |
|
68 | 76 | raise error.Abort(_('factotum not interactive')) |
@@ -127,7 +135,7 b' def find_user_password(self, realm, auth' | |||
|
127 | 135 | |
|
128 | 136 | def uisetup(ui): |
|
129 | 137 | global _executable |
|
130 |
_executable = ui.config('factotum', 'executable' |
|
|
138 | _executable = ui.config('factotum', 'executable') | |
|
131 | 139 | global _mountpoint |
|
132 | 140 | _mountpoint = ui.config('factotum', 'mountpoint', '/mnt/factotum') |
|
133 | 141 | global _service |
General Comments 0
You need to be logged in to leave comments.
Login now