D3592: py3: add b'' prefixes in hgext/convert/subversion.py
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Sat May 19 14:36:19 UTC 2018
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Litrerals starting with tripe quotes or prepended with r'' does not get
prepended by b'' by the transformer.
1. skip-blame because just adding b'' prefixes
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D3592
AFFECTED FILES
hgext/convert/subversion.py
CHANGE DETAILS
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:
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list