Mercurial > hg-stable
changeset 37586:b94fecf4cd8c
py3: use bytes() instead of str() on util.url()
We internally deal with bytes and anything as string breaks things.
Differential Revision: https://phab.mercurial-scm.org/D3285
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Thu, 12 Apr 2018 17:22:59 +0530 |
parents | df4fd29c0854 |
children | 192b7ad06932 |
files | mercurial/subrepoutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/subrepoutil.py Thu Apr 12 17:21:56 2018 +0530 +++ b/mercurial/subrepoutil.py Thu Apr 12 17:22:59 2018 +0530 @@ -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)