Package: mercurial
Version: 5.4.1-3
Severity: normal
Tags: upstream

Dear Maintainer,

After upgrade of Mercurial package to 5.4.1-3 in Debian testing (and apparently
switching from Python2 to 3),
using "hg convert <subversion repo> <target dir>" fails with a Python
traceback.

$ hg convert svn://svn.code.sf.net/p/vice-emu/code/trunk vice-hg
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 3.8.5 (default, Aug  2 2020, 15:09:07) [GCC 10.2.0]
** Mercurial Distributed SCM (version 5.4.1)
** Extensions loaded: hggit, patchbomb, eol, transplant, record, histedit,
rebase, purge, convert, fetch, gpg, churn
Traceback (most recent call last):
  File "/usr/bin/hg", line 43, in <module>
    dispatch.run()
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 112, in run
    status = dispatch(req)
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 298, in
dispatch
    ret = _runcatch(req) or 0
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 472, in
_runcatch
    return _callcatch(ui, _runcatchfunc)
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 481, in
_callcatch
    return scmutil.callcatch(ui, func)
  File "/usr/lib/python3/dist-packages/mercurial/scmutil.py", line 152, in
callcatch
    return func()
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 462, in
_runcatchfunc
    return _dispatch(req)
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 1225, in
_dispatch
    return runcommand(
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 910, in
runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 1237, in
_runcommand
    return cmdfunc()
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 1223, in
<lambda>
    d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
  File "/usr/lib/python3/dist-packages/mercurial/util.py", line 1864, in check
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/hgext/convert/__init__.py", line 495, in
convert
    return convcmd.convert(ui, src, dest, revmapfile, **opts)
  File "/usr/lib/python3.8/importlib/util.py", line 245, in __getattribute__
    self.__spec__.loader.exec_module(self)
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/hgext/convert/convcmd.py", line 53, in
<module>
    svn_sink = subversion.svn_sink
  File "/usr/lib/python3.8/importlib/util.py", line 245, in __getattribute__
    self.__spec__.loader.exec_module(self)
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/hgext/convert/subversion.py", line 57,
in <module>
    warnings.filterwarnings(
  File "/usr/lib/python3.8/warnings.py", line 142, in filterwarnings
    assert action in ("error", "ignore", "always", "default", "module",
AssertionError: invalid action: b'ignore'

It seems that there are a number of issues in the subversion conversion module
of Mercurial, fixing the incorrect b'' strings on subversion.py, line 57
results in more errors in other places. This is quite likely an upstream
problem.



-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.7.15-qcmm (SMP w/8 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mercurial depends on:
ii  libc6             2.31-3
ii  mercurial-common  5.4.1-3
ii  python3           3.8.2-3
ii  ucf               3.0043

Versions of packages mercurial recommends:
ii  openssh-client  1:8.3p1-1

Versions of packages mercurial suggests:
pn  kdiff3 | kdiff3-qt | kompare | meld | tkcvs | mgdiff  <none>
pn  qct                                                   <none>

-- no debconf information

Reply via email to