Patchwork D2473: py3: use pycompat.strurl to convert url to str

login
register
mail settings
Submitter phabricator
Date Feb. 27, 2018, 9:36 a.m.
Message ID <differential-rev-PHID-DREV-swxfhsih3dvg7n7jik4y-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28438/
State Superseded
Headers show

Comments

phabricator - Feb. 27, 2018, 9:36 a.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/url.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel
phabricator - March 4, 2018, 3:52 p.m.
durin42 commandeered this revision.
durin42 added a reviewer: pulkit.
durin42 added a comment.


  This was landed as https://phab.mercurial-scm.org/D2474 AFAICT

REPOSITORY
  rHG Mercurial

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

To: durin42, #hg-reviewers, pulkit
Cc: durin42, mercurial-devel

Patch

diff --git a/mercurial/url.py b/mercurial/url.py
--- a/mercurial/url.py
+++ b/mercurial/url.py
@@ -528,4 +528,4 @@ 
         path = util.normpath(os.path.abspath(url_))
         url_ = 'file://' + urlreq.pathname2url(path)
         authinfo = None
-    return opener(ui, authinfo).open(url_, data)
+    return opener(ui, authinfo).open(pycompat.strurl(url_), data)