configitems: register the 'factotum.service' config
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 30 Jun 2017 03:42:15 +0200
changeset 33243 a9524aea7cab
parent 33242 037c5c937602
child 33244 fd50788a2d4f
configitems: register the 'factotum.service' config
hgext/factotum.py
--- a/hgext/factotum.py	Fri Jun 30 03:42:13 2017 +0200
+++ b/hgext/factotum.py	Fri Jun 30 03:42:15 2017 +0200
@@ -73,6 +73,9 @@
 configitem('factotum', 'mountpoint',
     default='/mnt/factotum',
 )
+configitem('factotum', 'service',
+    default='hg',
+)
 
 def auth_getkey(self, params):
     if not self.ui.interactive():
@@ -142,4 +145,4 @@
     global _mountpoint
     _mountpoint = ui.config('factotum', 'mountpoint')
     global _service
-    _service = ui.config('factotum', 'service', 'hg')
+    _service = ui.config('factotum', 'service')