D3285: py3: use bytes() instead of str() on util.url()

2018-04-12 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGb94fecf4cd8c: py3: use bytes() instead of str() on 
util.url() (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3285?vs=8052=8064

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

AFFECTED FILES
  mercurial/subrepoutil.py

CHANGE DETAILS

diff --git a/mercurial/subrepoutil.py b/mercurial/subrepoutil.py
--- a/mercurial/subrepoutil.py
+++ b/mercurial/subrepoutil.py
@@ -106,7 +106,7 @@
 parent = util.url(parent)
 parent.path = posixpath.join(parent.path or '', src)
 parent.path = posixpath.normpath(parent.path)
-joined = str(parent)
+joined = bytes(parent)
 # Remap the full joined path and use it if it changes,
 # else remap the original source.
 remapped = remap(joined)



To: pulkit, #hg-reviewers
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D3285: py3: use bytes() instead of str() on util.url()

2018-04-12 Thread pulkit (Pulkit Goyal)
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  We internally deal with bytes and anything as string breaks things.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/subrepoutil.py

CHANGE DETAILS

diff --git a/mercurial/subrepoutil.py b/mercurial/subrepoutil.py
--- a/mercurial/subrepoutil.py
+++ b/mercurial/subrepoutil.py
@@ -106,7 +106,7 @@
 parent = util.url(parent)
 parent.path = posixpath.join(parent.path or '', src)
 parent.path = posixpath.normpath(parent.path)
-joined = str(parent)
+joined = bytes(parent)
 # Remap the full joined path and use it if it changes,
 # else remap the original source.
 remapped = remap(joined)



To: pulkit, #hg-reviewers
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel