Mercurial > hg
diff hgext/convert/subversion.py @ 30132:72f75eda02ba
py3: use raw strings in line continuation (convert ext)
Our py2 to py3 string translations marks those as bytestrings.
author | Mateusz Kwapich <mitrandir@fb.com> |
---|---|
date | Mon, 10 Oct 2016 05:31:31 -0700 |
parents | b501579147f1 |
children | 21f977dbfaec |
line wrap: on
line diff
--- a/hgext/convert/subversion.py Mon Oct 10 05:30:14 2016 -0700 +++ b/hgext/convert/subversion.py Mon Oct 10 05:31:31 2016 -0700 @@ -531,8 +531,8 @@ def checkrevformat(self, revstr, mapname='splicemap'): """ fails if revision format does not match the correct format""" if not re.match(r'svn:[0-9a-f]{8,8}-[0-9a-f]{4,4}-' - '[0-9a-f]{4,4}-[0-9a-f]{4,4}-[0-9a-f]' - '{12,12}(.*)\@[0-9]+$',revstr): + r'[0-9a-f]{4,4}-[0-9a-f]{4,4}-[0-9a-f]' + r'{12,12}(.*)\@[0-9]+$',revstr): raise error.Abort(_('%s entry %s is not a valid revision' ' identifier') % (mapname, revstr))