changeset 36731:8988c34bd018

py3: don't use str() to stringify pushloc
author Yuya Nishihara <yuya@tcha.org>
date Sun, 04 Mar 2018 15:53:10 -0500
parents a22915edc279
children 723e87c8c059
files contrib/python3-whitelist mercurial/ui.py
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/python3-whitelist	Sun Mar 04 15:26:26 2018 -0500
+++ b/contrib/python3-whitelist	Sun Mar 04 15:53:10 2018 -0500
@@ -69,6 +69,7 @@
 test-debugextensions.t
 test-debugindexdot.t
 test-debugrename.t
+test-default-push.t
 test-diff-binary-file.t
 test-diff-change.t
 test-diff-copy-depth.t
--- a/mercurial/ui.py	Sun Mar 04 15:26:26 2018 -0500
+++ b/mercurial/ui.py	Sun Mar 04 15:53:10 2018 -0500
@@ -1757,7 +1757,7 @@
                   'ignoring)\n') % path.name)
         u.fragment = None
 
-    return str(u)
+    return bytes(u)
 
 @pathsuboption('pushrev', 'pushrev')
 def pushrevpathoption(ui, path, value):