changeset 47027:067f2c53fb24 stable 5.8

phabricator: adapt to the new `urlutil.url()` API This avoids a bunch of deprecation warnings in the tests. Differential Revision: https://phab.mercurial-scm.org/D10541
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 01 May 2021 00:28:39 -0400
parents 553451522113
children 381a10ef6a4a 7431f5ab0d2a
files hgext/phabricator.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/phabricator.py	Fri Apr 30 17:36:09 2021 -0400
+++ b/hgext/phabricator.py	Sat May 01 00:28:39 2021 -0400
@@ -403,7 +403,7 @@
 def callconduit(ui, name, params):
     """call Conduit API, params is a dict. return json.loads result, or None"""
     host, token = readurltoken(ui)
-    url, authinfo = util.url(b'/'.join([host, b'api', name])).authinfo()
+    url, authinfo = urlutil.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'__conduit__'] = {