Patchwork [09,of,14] configitems: register the 'share.poolnaming' config

login
register
mail settings
Submitter Boris Feld
Date Oct. 6, 2017, 9:22 a.m.
Message ID <308aa280ed82cdd7ccb8.1507281745@FB>
Download mbox | patch
Permalink /patch/24590/
State Accepted
Headers show

Comments

Boris Feld - Oct. 6, 2017, 9:22 a.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1498787058 -7200
#      Fri Jun 30 03:44:18 2017 +0200
# Node ID 308aa280ed82cdd7ccb863053a7dacdc11c42987
# Parent  f9734580f2b624dab3becb2e21ea3fa9bc137a83
# EXP-Topic config.register.share
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 308aa280ed82
configitems: register the 'share.poolnaming' config

Patch

diff -r f9734580f2b6 -r 308aa280ed82 hgext/share.py
--- a/hgext/share.py	Fri Jun 30 03:44:17 2017 +0200
+++ b/hgext/share.py	Fri Jun 30 03:44:18 2017 +0200
@@ -69,6 +69,9 @@ 
 configitem('share', 'pool',
     default=None,
 )
+configitem('share', 'poolnaming',
+    default='identity',
+)
 
 @command('share',
     [('U', 'noupdate', None, _('do not create a working directory')),
@@ -141,7 +144,7 @@ 
 
     opts[r'shareopts'] = {
         'pool': pool,
-        'mode': ui.config('share', 'poolnaming', 'identity'),
+        'mode': ui.config('share', 'poolnaming'),
     }
 
     return orig(ui, source, *args, **opts)