Show More
@@ -54,6 +54,7 b' from mercurial import (' | |||
|
54 | 54 | context, |
|
55 | 55 | encoding, |
|
56 | 56 | error, |
|
57 | exthelper, | |
|
57 | 58 | httpconnection as httpconnectionmod, |
|
58 | 59 | mdiff, |
|
59 | 60 | obsutil, |
@@ -61,7 +62,6 b' from mercurial import (' | |||
|
61 | 62 | patch, |
|
62 | 63 | phases, |
|
63 | 64 | pycompat, |
|
64 | registrar, | |
|
65 | 65 | scmutil, |
|
66 | 66 | smartset, |
|
67 | 67 | tags, |
@@ -81,30 +81,31 b' from mercurial.utils import (' | |||
|
81 | 81 | # leave the attribute unspecified. |
|
82 | 82 | testedwith = 'ships-with-hg-core' |
|
83 | 83 | |
|
84 | cmdtable = {} | |
|
85 | command = registrar.command(cmdtable) | |
|
84 | eh = exthelper.exthelper() | |
|
86 | 85 | |
|
87 | configtable = {} | |
|
88 | configitem = registrar.configitem(configtable) | |
|
86 | cmdtable = eh.cmdtable | |
|
87 | command = eh.command | |
|
88 | configtable = eh.configtable | |
|
89 | templatekeyword = eh.templatekeyword | |
|
89 | 90 | |
|
90 | 91 | # developer config: phabricator.batchsize |
|
91 | configitem(b'phabricator', b'batchsize', | |
|
92 | eh.configitem(b'phabricator', b'batchsize', | |
|
92 | 93 | default=12, |
|
93 | 94 | ) |
|
94 | configitem(b'phabricator', b'callsign', | |
|
95 | eh.configitem(b'phabricator', b'callsign', | |
|
95 | 96 | default=None, |
|
96 | 97 | ) |
|
97 | configitem(b'phabricator', b'curlcmd', | |
|
98 | eh.configitem(b'phabricator', b'curlcmd', | |
|
98 | 99 | default=None, |
|
99 | 100 | ) |
|
100 | 101 | # developer config: phabricator.repophid |
|
101 | configitem(b'phabricator', b'repophid', | |
|
102 | eh.configitem(b'phabricator', b'repophid', | |
|
102 | 103 | default=None, |
|
103 | 104 | ) |
|
104 | configitem(b'phabricator', b'url', | |
|
105 | eh.configitem(b'phabricator', b'url', | |
|
105 | 106 | default=None, |
|
106 | 107 | ) |
|
107 | configitem(b'phabsend', b'confirm', | |
|
108 | eh.configitem(b'phabsend', b'confirm', | |
|
108 | 109 | default=False, |
|
109 | 110 | ) |
|
110 | 111 | |
@@ -1064,9 +1065,7 b' def phabupdate(ui, repo, spec, **opts):' | |||
|
1064 | 1065 | b'transactions': actions} |
|
1065 | 1066 | callconduit(ui, b'differential.revision.edit', params) |
|
1066 | 1067 | |
|
1067 | templatekeyword = registrar.templatekeyword() | |
|
1068 | ||
|
1069 | @templatekeyword(b'phabreview', requires={b'ctx'}) | |
|
1068 | @eh.templatekeyword(b'phabreview', requires={b'ctx'}) | |
|
1070 | 1069 | def template_review(context, mapping): |
|
1071 | 1070 | """:phabreview: Object describing the review for this changeset. |
|
1072 | 1071 | Has attributes `url` and `id`. |
General Comments 0
You need to be logged in to leave comments.
Login now