Skip to content
Snippets Groups Projects
Commit f5aa4a53 authored by Ian Moody's avatar Ian Moody
Browse files

phabricator: change conduit data format to match arcanist

The existing form isn't handled well by Phabricator for certain data types.

Differential Revision: https://phab.mercurial-scm.org/D7052
parent ec4dfcc3
No related branches found
No related tags found
No related merge requests found
......@@ -267,8 +267,15 @@
url, authinfo = util.url(b'/'.join([host, b'api', name])).authinfo()
ui.debug(b'Conduit Call: %s %s\n' % (url, pycompat.byterepr(params)))
params = params.copy()
params[b'api.token'] = token
data = urlencodenested(params)
params[b'__conduit__'] = {
b'token': token,
}
rawdata = {
b'params': templatefilters.json(params),
b'output': b'json',
b'__conduit__': 1,
}
data = urlencodenested(rawdata)
curlcmd = ui.config(b'phabricator', b'curlcmd')
if curlcmd:
sin, sout = procutil.popen2(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment