##// END OF EJS Templates
phabricator: register config settings...
Matt Harbison -
r38053:5a7cf42b default
parent child Browse files
Show More
@@ -73,6 +73,30 b' from mercurial.utils import ('
73 cmdtable = {}
73 cmdtable = {}
74 command = registrar.command(cmdtable)
74 command = registrar.command(cmdtable)
75
75
76 configtable = {}
77 configitem = registrar.configitem(configtable)
78
79 # developer config: phabricator.batchsize
80 configitem('phabricator', 'batchsize',
81 default=12,
82 )
83 configitem('phabricator', 'callsign',
84 default=None,
85 )
86 configitem('phabricator', 'curlcmd',
87 default=None,
88 )
89 # developer config: phabricator.repophid
90 configitem('phabricator', 'repophid',
91 default=None,
92 )
93 configitem('phabricator', 'url',
94 default=None,
95 )
96 configitem('phabsend', 'confirm',
97 default=False,
98 )
99
76 colortable = {
100 colortable = {
77 'phabricator.action.created': 'green',
101 'phabricator.action.created': 'green',
78 'phabricator.action.skipped': 'magenta',
102 'phabricator.action.skipped': 'magenta',
@@ -750,7 +774,7 b' def querydrev(repo, spec):'
750 drevs, ancestordrevs = _prefetchdrevs(tree)
774 drevs, ancestordrevs = _prefetchdrevs(tree)
751
775
752 # developer config: phabricator.batchsize
776 # developer config: phabricator.batchsize
753 batchsize = repo.ui.configint('phabricator', 'batchsize', 12)
777 batchsize = repo.ui.configint('phabricator', 'batchsize')
754
778
755 # Prefetch Differential Revisions in batch
779 # Prefetch Differential Revisions in batch
756 tofetch = set(drevs)
780 tofetch = set(drevs)
General Comments 0
You need to be logged in to leave comments. Login now