diff -r 30d0cb279bac -r 11c0bb4ccc76 mercurial/hg.py --- a/mercurial/hg.py Tue Jun 20 22:11:46 2017 +0530 +++ b/mercurial/hg.py Tue Jun 20 23:46:18 2017 +0530 @@ -477,7 +477,7 @@ remote's path/URL. Defaults to "identity." """ - if isinstance(source, str): + if isinstance(source, bytes): origsource = ui.expandpath(source) source, branch = parseurl(origsource, branch) srcpeer = peer(ui, peeropts, source)