hgext/convert/subversion.py
changeset 38068 c560a4ea6dac
parent 37120 a8a902d7176e
child 38164 aac4be30e250
--- 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: