changeset 33242:037c5c937602

configitems: register the 'factotum.mountpoint' config
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 30 Jun 2017 03:42:13 +0200
parents 21b568820a3c
children a9524aea7cab
files hgext/factotum.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/factotum.py	Fri Jun 30 03:42:12 2017 +0200
+++ b/hgext/factotum.py	Fri Jun 30 03:42:13 2017 +0200
@@ -70,6 +70,9 @@
 configitem('factotum', 'executable',
     default='/bin/auth/factotum',
 )
+configitem('factotum', 'mountpoint',
+    default='/mnt/factotum',
+)
 
 def auth_getkey(self, params):
     if not self.ui.interactive():
@@ -137,6 +140,6 @@
     global _executable
     _executable = ui.config('factotum', 'executable')
     global _mountpoint
-    _mountpoint = ui.config('factotum', 'mountpoint', '/mnt/factotum')
+    _mountpoint = ui.config('factotum', 'mountpoint')
     global _service
     _service = ui.config('factotum', 'service', 'hg')