Patchwork [10,of,17] configitems: register the 'factotum.service' config

login
register
mail settings
Submitter Pierre-Yves David
Date July 4, 2017, 11:10 p.m.
Message ID <bfcacec9fc8331c3c1a1.1499209838@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/21982/
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 1498786935 -7200
#      Fri Jun 30 03:42:15 2017 +0200
# Node ID bfcacec9fc8331c3c1a112cef13ad789895f83af
# Parent  d774524f3bbf2f17a09f1a5ddf2e245791ea095d
# 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 bfcacec9fc83
configitems: register the 'factotum.service' config

Patch

diff --git a/hgext/factotum.py b/hgext/factotum.py
--- a/hgext/factotum.py
+++ b/hgext/factotum.py
@@ -73,6 +73,9 @@  configitem('factotum', 'executable',
 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 @@  def uisetup(ui):
     global _mountpoint
     _mountpoint = ui.config('factotum', 'mountpoint')
     global _service
-    _service = ui.config('factotum', 'service', 'hg')
+    _service = ui.config('factotum', 'service')