--- a/hgext/factotum.py Fri Jun 30 03:42:26 2017 +0200
+++ b/hgext/factotum.py Fri Jun 30 03:42:12 2017 +0200
@@ -52,6 +52,7 @@
from mercurial import (
error,
httpconnection,
+ registrar,
url,
util,
)
@@ -63,6 +64,13 @@
_executable = _mountpoint = _service = None
+configtable = {}
+configitem = registrar.configitem(configtable)
+
+configitem('factotum', 'executable',
+ default='/bin/auth/factotum',
+)
+
def auth_getkey(self, params):
if not self.ui.interactive():
raise error.Abort(_('factotum not interactive'))
@@ -127,7 +135,7 @@
def uisetup(ui):
global _executable
- _executable = ui.config('factotum', 'executable', '/bin/auth/factotum')
+ _executable = ui.config('factotum', 'executable')
global _mountpoint
_mountpoint = ui.config('factotum', 'mountpoint', '/mnt/factotum')
global _service