Litrerals starting with tripe quotes or prepended with r'' does not get
prepended by b'' by the transformer.
- skip-blame because just adding b'' prefixes
hg-reviewers |
Litrerals starting with tripe quotes or prepended with r'' does not get
prepended by b'' by the transformer.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Path | Packages | |||
---|---|---|---|---|
M | hgext/convert/subversion.py (6 lines) |
Status | Author | Revision | |
---|---|---|---|
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit |
stdin.write(arg) | stdin.write(arg) | ||||
try: | try: | ||||
stdin.close() | stdin.close() | ||||
except IOError: | except IOError: | ||||
raise error.Abort(_('Mercurial failed to run itself, check' | raise error.Abort(_('Mercurial failed to run itself, check' | ||||
' hg executable is in PATH')) | ' hg executable is in PATH')) | ||||
return logstream(stdout) | return logstream(stdout) | ||||
pre_revprop_change = '''#!/bin/sh | pre_revprop_change = b'''#!/bin/sh | ||||
REPOS="$1" | REPOS="$1" | ||||
REV="$2" | REV="$2" | ||||
USER="$3" | USER="$3" | ||||
PROPNAME="$4" | PROPNAME="$4" | ||||
ACTION="$5" | ACTION="$5" | ||||
if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ]; then exit 0; fi | if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ]; then exit 0; fi | ||||
if [ "$ACTION" = "A" -a "$PROPNAME" = "hg:convert-branch" ]; then exit 0; fi | if [ "$ACTION" = "A" -a "$PROPNAME" = "hg:convert-branch" ]; then exit 0; fi | ||||
if [ "$ACTION" = "A" -a "$PROPNAME" = "hg:convert-rev" ]; then exit 0; fi | if [ "$ACTION" = "A" -a "$PROPNAME" = "hg:convert-rev" ]; then exit 0; fi | ||||
echo "Changing prohibited revision property" >&2 | echo "Changing prohibited revision property" >&2 | ||||
exit 1 | exit 1 | ||||
''' | ''' | ||||
class svn_sink(converter_sink, commandline): | class svn_sink(converter_sink, commandline): | ||||
commit_re = re.compile(r'Committed revision (\d+).', re.M) | commit_re = re.compile(br'Committed revision (\d+).', re.M) | ||||
uuid_re = re.compile(r'Repository UUID:\s*(\S+)', re.M) | uuid_re = re.compile(br'Repository UUID:\s*(\S+)', re.M) | ||||
def prerun(self): | def prerun(self): | ||||
if self.wc: | if self.wc: | ||||
os.chdir(self.wc) | os.chdir(self.wc) | ||||
def postrun(self): | def postrun(self): | ||||
if self.wc: | if self.wc: | ||||
os.chdir(self.cwd) | os.chdir(self.cwd) |