D6104: py3: don't try and format a bare dict into a byte string in callconduit

Kwan (Ian Moody) phabricator at mercurial-scm.org
Sat Mar 9 20:50:21 EST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9a8c7c17d816: py3: don't try and format a bare dict into a byte string in callconduit (authored by Kwan, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6104?vs=14417&id=14430

REVISION DETAIL
  https://phab.mercurial-scm.org/D6104

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
@@ -204,7 +204,7 @@
     """call Conduit API, params is a dict. return json.loads result, or None"""
     host, token = readurltoken(repo)
     url, authinfo = util.url(b'/'.join([host, b'api', name])).authinfo()
-    repo.ui.debug(b'Conduit Call: %s %s\n' % (url, params))
+    repo.ui.debug(b'Conduit Call: %s %s\n' % (url, pycompat.byterepr(params)))
     params = params.copy()
     params[b'api.token'] = token
     data = urlencodenested(params)



To: Kwan, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list