diff --git a/hgext/convert/subversion.py b/hgext/convert/subversion.py --- a/hgext/convert/subversion.py +++ b/hgext/convert/subversion.py @@ -531,8 +531,8 @@ class svn_source(converter_source): 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)) diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t +++ b/tests/test-check-py3-compat.t @@ -16,24 +16,10 @@ $ hg files 'set:(**.py) - grep(pygments)' | sed 's|\\|/|g' \ > | xargs $PYTHON3 contrib/check-py3-compat.py \ > | sed 's/[0-9][0-9]*)$/*)/' - hgext/convert/bzr.py: error importing: cannot mix bytes and nonbytes literals (subversion.py, line 533) (error at convcmd.py:*) - hgext/convert/convcmd.py: error importing: cannot mix bytes and nonbytes literals (subversion.py, line 533) (error at convcmd.py:*) - hgext/convert/subversion.py: error importing: cannot mix bytes and nonbytes literals (subversion.py, line 533) (error at convcmd.py:*) - hgext/convert/transport.py: error importing: cannot mix bytes and nonbytes literals (subversion.py, line 533) (error at convcmd.py:*) + hgext/convert/transport.py: error importing: No module named 'svn.client' (error at transport.py:*) hgext/fsmonitor/pywatchman/capabilities.py: error importing: No module named 'pybser' (error at __init__.py:*) hgext/fsmonitor/pywatchman/pybser.py: error importing: No module named 'pybser' (error at __init__.py:*) hgext/fsmonitor/watchmanclient.py: error importing: No module named 'pybser' (error at __init__.py:*) - hgext/largefiles/basestore.py: error importing: cannot mix bytes and nonbytes literals (subversion.py, line 533) (error at convcmd.py:*) - hgext/largefiles/lfcommands.py: error importing: cannot mix bytes and nonbytes literals (subversion.py, line 533) (error at convcmd.py:*) - hgext/largefiles/lfutil.py: error importing: cannot mix bytes and nonbytes literals (subversion.py, line 533) (error at convcmd.py:*) - hgext/largefiles/localstore.py: error importing: cannot mix bytes and nonbytes literals (subversion.py, line 533) (error at convcmd.py:*) - hgext/largefiles/overrides.py: error importing: cannot mix bytes and nonbytes literals (subversion.py, line 533) (error at convcmd.py:*) - hgext/largefiles/proto.py: error importing: cannot mix bytes and nonbytes literals (subversion.py, line 533) (error at convcmd.py:*) - hgext/largefiles/remotestore.py: error importing: cannot mix bytes and nonbytes literals (subversion.py, line 533) (error at convcmd.py:*) - hgext/largefiles/reposetup.py: error importing: cannot mix bytes and nonbytes literals (subversion.py, line 533) (error at convcmd.py:*) - hgext/largefiles/storefactory.py: error importing: cannot mix bytes and nonbytes literals (subversion.py, line 533) (error at convcmd.py:*) - hgext/largefiles/uisetup.py: error importing: cannot mix bytes and nonbytes literals (subversion.py, line 533) (error at convcmd.py:*) - hgext/largefiles/wirestore.py: error importing: cannot mix bytes and nonbytes literals (subversion.py, line 533) (error at convcmd.py:*) hgext/mq.py: error importing: __import__() argument 1 must be str, not bytes (error at extensions.py:*) mercurial/scmwindows.py: error importing: No module named 'winreg' (error at scmwindows.py:*) mercurial/win32.py: error importing: No module named 'msvcrt' (error at win32.py:*)