Patchwork D3592: py3: add b'' prefixes in hgext/convert/subversion.py

login
register
mail settings
Submitter phabricator
Date May 19, 2018, 7:39 p.m.
Message ID <7a680c4a969574be7283c2d20b128e0c@localhost.localdomain>
Download mbox | patch
Permalink /patch/31716/
State Not Applicable
Headers show

Comments

phabricator - May 19, 2018, 7:39 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc560a4ea6dac: py3: add b&#039;&#039; prefixes in hgext/convert/subversion.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3592?vs=8763&id=8797

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

AFFECTED FILES
  hgext/convert/subversion.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/convert/subversion.py b/hgext/convert/subversion.py
--- a/hgext/convert/subversion.py
+++ b/hgext/convert/subversion.py
@@ -1081,7 +1081,7 @@ 
                                ' hg executable is in PATH'))
         return logstream(stdout)
 
-pre_revprop_change = '''#!/bin/sh
+pre_revprop_change = b'''#!/bin/sh
 
 REPOS="$1"
 REV="$2"
@@ -1098,8 +1098,8 @@ 
 '''
 
 class svn_sink(converter_sink, commandline):
-    commit_re = re.compile(r'Committed revision (\d+).', re.M)
-    uuid_re = re.compile(r'Repository UUID:\s*(\S+)', re.M)
+    commit_re = re.compile(br'Committed revision (\d+).', re.M)
+    uuid_re = re.compile(br'Repository UUID:\s*(\S+)', re.M)
 
     def prerun(self):
         if self.wc: