# HG changeset patch # User Boris Feld # Date 2017-06-30 01:44:17 # Node ID f9734580f2b624dab3becb2e21ea3fa9bc137a83 # Parent 18cd210535b3d8dc1487a866f9e0553c4f1aa80e configitems: register the 'share.pool' config diff --git a/hgext/share.py b/hgext/share.py --- a/hgext/share.py +++ b/hgext/share.py @@ -63,6 +63,13 @@ command = registrar.command(cmdtable) # leave the attribute unspecified. testedwith = 'ships-with-hg-core' +configtable = {} +configitem = registrar.configitem(configtable) + +configitem('share', 'pool', + default=None, +) + @command('share', [('U', 'noupdate', None, _('do not create a working directory')), ('B', 'bookmarks', None, _('also share bookmarks')), @@ -128,7 +135,7 @@ def unshare(ui, repo): # Wrap clone command to pass auto share options. def clone(orig, ui, source, *args, **opts): - pool = ui.config('share', 'pool', None) + pool = ui.config('share', 'pool') if pool: pool = util.expandpath(pool)