Patchwork [09,of,17] configitems: register the 'factotum.mountpoint' config

login
register
mail settings
Submitter Pierre-Yves David
Date July 4, 2017, 11:10 p.m.
Message ID <d774524f3bbf2f17a09f.1499209837@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/21989/
State Accepted
Headers show

Comments

Pierre-Yves David - July 4, 2017, 11:10 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1498786933 -7200
#      Fri Jun 30 03:42:13 2017 +0200
# Node ID d774524f3bbf2f17a09f1a5ddf2e245791ea095d
# Parent  4ee24ce1d84e61c0845bbb93dd806fe23276cfc2
# EXP-Topic config.register.factorum
# Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
#              hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r d774524f3bbf
configitems: register the 'factotum.mountpoint' config

Patch

diff --git a/hgext/factotum.py b/hgext/factotum.py
--- a/hgext/factotum.py
+++ b/hgext/factotum.py
@@ -70,6 +70,9 @@  configitem = registrar.configitem(config
 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 @@  def uisetup(ui):
     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')