Show More
@@ -267,8 +267,15 b' def callconduit(ui, name, params):' | |||||
267 | url, authinfo = util.url(b'/'.join([host, b'api', name])).authinfo() |
|
267 | url, authinfo = util.url(b'/'.join([host, b'api', name])).authinfo() | |
268 | ui.debug(b'Conduit Call: %s %s\n' % (url, pycompat.byterepr(params))) |
|
268 | ui.debug(b'Conduit Call: %s %s\n' % (url, pycompat.byterepr(params))) | |
269 | params = params.copy() |
|
269 | params = params.copy() | |
270 |
params[b' |
|
270 | params[b'__conduit__'] = { | |
271 | data = urlencodenested(params) |
|
271 | b'token': token, | |
|
272 | } | |||
|
273 | rawdata = { | |||
|
274 | b'params': templatefilters.json(params), | |||
|
275 | b'output': b'json', | |||
|
276 | b'__conduit__': 1, | |||
|
277 | } | |||
|
278 | data = urlencodenested(rawdata) | |||
272 | curlcmd = ui.config(b'phabricator', b'curlcmd') |
|
279 | curlcmd = ui.config(b'phabricator', b'curlcmd') | |
273 | if curlcmd: |
|
280 | if curlcmd: | |
274 | sin, sout = procutil.popen2( |
|
281 | sin, sout = procutil.popen2( |
General Comments 0
You need to be logged in to leave comments.
Login now