py3: add b'' prefixes in hgext/convert/subversion.py
authorPulkit Goyal <7895pulkit@gmail.com>
Sat, 19 May 2018 18:24:36 +0530
changeset 38068 c560a4ea6dac
parent 38067 a40041caf8af
child 38069 5ba0cf22e4d0
py3: add b'' prefixes in hgext/convert/subversion.py Litrerals starting with triple quotes or prepended with r'' do not get prepended by b'' by the transformer. # skip-blame because just adding b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D3592
hgext/convert/subversion.py
--- a/hgext/convert/subversion.py	Sat May 19 18:23:03 2018 +0530
+++ b/hgext/convert/subversion.py	Sat May 19 18:24:36 2018 +0530
@@ -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: