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

login
register
mail settings
Submitter phabricator
Date March 10, 2019, 1:50 a.m.
Message ID <30344a3f7322e998cbc078379cd6c245@localhost.localdomain>
Download mbox | patch
Permalink /patch/39171/
State Not Applicable
Headers show

Comments

phabricator - March 10, 2019, 1:50 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9a8c7c17d816: py3: don&#039;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




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

Patch

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)