# HG changeset patch # User Pierre-Yves David # Date 2017-06-30 01:42:13 # Node ID 037c5c9376029ecb84f4d11dc66ae93adaf33a53 # Parent 21b568820a3cb38dc3a6cfa93c2923cca0284959 configitems: register the 'factotum.mountpoint' config 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')