py3: don't use str() to stringify pushloc
authorYuya Nishihara <yuya@tcha.org>
Sun, 04 Mar 2018 15:53:10 -0500
changeset 36731 8988c34bd018
parent 36730 a22915edc279
child 36732 723e87c8c059
py3: don't use str() to stringify pushloc
contrib/python3-whitelist
mercurial/ui.py
--- 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):