Patchwork D2151: py3: check for bytes instead of str in hg.share()

login
register
mail settings
Submitter phabricator
Date Feb. 12, 2018, 1:40 a.m.
Message ID <7c3287929c907ba3ac4bc414010e06fe@localhost.localdomain>
Download mbox | patch
Permalink /patch/27616/
State Not Applicable
Headers show

Comments

phabricator - Feb. 12, 2018, 1:40 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG488e313954ea: py3: check for bytes instead of str in hg.share() (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2151?vs=5436&id=5451

REVISION DETAIL
  https://phab.mercurial-scm.org/D2151

AFFECTED FILES
  mercurial/hg.py

CHANGE DETAILS




To: indygreg, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/hg.py b/mercurial/hg.py
--- a/mercurial/hg.py
+++ b/mercurial/hg.py
@@ -214,7 +214,7 @@ 
     else:
         dest = ui.expandpath(dest)
 
-    if isinstance(source, str):
+    if isinstance(source, bytes):
         origsource = ui.expandpath(source)
         source, branches = parseurl(origsource)
         srcrepo = repository(ui, source)