[Request] [+ ] D10541: phabricator: adapt to the new `urlutil.url()` API
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Sat May 1 05:51:30 UTC 2021
mharbison72 created this revision.
Herald added subscribers: mercurial-patches, Kwan.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This avoids a bunch of deprecation warnings in the tests.
REPOSITORY
rHG Mercurial
BRANCH
stable
REVISION DETAIL
https://phab.mercurial-scm.org/D10541
AFFECTED FILES
hgext/phabricator.py
CHANGE DETAILS
diff --git a/hgext/phabricator.py b/hgext/phabricator.py
--- a/hgext/phabricator.py
+++ b/hgext/phabricator.py
@@ -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__'] = {
To: mharbison72, #hg-reviewers
Cc: Kwan, mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20210501/6eeae5b2/attachment.html>
More information about the Mercurial-patches
mailing list