# HG changeset patch # User Matt Harbison <matt_harbi...@yahoo.com> # Date 1526525067 14400 # Wed May 16 22:44:27 2018 -0400 # Node ID 8003050dd9ee58fbc1eceda17aec5332830e9da2 # Parent c3fd9a0f8277a4abbc709a91f642f841bad1cc62 phabricator: register config settings
I didn't bother registering the deprecated phabricator.auth.*, and I'm not sure if the two flagged as 'developer config' should be moved to [devel] (or why there's a distinction between `repophid` and `callsign`). diff --git a/contrib/phabricator.py b/contrib/phabricator.py --- a/contrib/phabricator.py +++ b/contrib/phabricator.py @@ -73,6 +73,30 @@ from mercurial.utils import ( cmdtable = {} command = registrar.command(cmdtable) +configtable = {} +configitem = registrar.configitem(configtable) + +# developer config: phabricator.batchsize +configitem('phabricator', 'batchsize', + default=12, +) +configitem('phabricator', 'callsign', + default=None, +) +configitem('phabricator', 'curlcmd', + default=None, +) +# developer config: phabricator.repophid +configitem('phabricator', 'repophid', + default=None, +) +configitem('phabricator', 'url', + default=None, +) +configitem('phabsend', 'confirm', + default=False, +) + colortable = { 'phabricator.action.created': 'green', 'phabricator.action.skipped': 'magenta', _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel