diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist --- a/contrib/python3-whitelist +++ b/contrib/python3-whitelist @@ -69,6 +69,7 @@ test-debugbundle.t 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 diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -1757,7 +1757,7 @@ def pushurlpathoption(ui, path, value): 'ignoring)\n') % path.name) u.fragment = None - return str(u) + return bytes(u) @pathsuboption('pushrev', 'pushrev') def pushrevpathoption(ui, path, value):