# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-04-12 11:52:59 # Node ID b94fecf4cd8c64dc00a2fba35a6d771cbf568e16 # Parent df4fd29c08546c61fc669192c5c312c62955ebc6 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 diff --git a/mercurial/subrepoutil.py b/mercurial/subrepoutil.py --- a/mercurial/subrepoutil.py +++ b/mercurial/subrepoutil.py @@ -106,7 +106,7 @@ def state(ctx, ui): 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)