[Bug 6713] New: hg convert TypeError
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Thu Jun 9 09:14:03 UTC 2022
https://bz.mercurial-scm.org/show_bug.cgi?id=6713
Bug ID: 6713
Summary: hg convert TypeError
Product: Mercurial
Version: 6.1.2
Hardware: All
OS: NetBSD
Status: UNCONFIRMED
Severity: bug
Priority: normal
Component: convert
Assignee: bugzilla at mercurial-scm.org
Reporter: tk at giga.or.at
CC: durin42 at gmail.com, mercurial-devel at mercurial-scm.org
Python Version: ---
I just tried 'hg convert' on an old CVS repository (which I can't share, sorry)
and got:
7793 log entries
creating changesets
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 3.10.4 (main, May 27 2022, 06:14:29) [GCC 10.3.0]
** Mercurial Distributed SCM (version 6.1.2)
** Extensions loaded: amend, convert, histedit, pager, patchbomb, purge,
rebase, strip
Traceback (most recent call last):
File "/usr/pkg/bin/hg", line 61, in <module>
dispatch.run()
File "/usr/pkg/lib/python3.10/site-packages/mercurial/dispatch.py", line 144,
in run
status = dispatch(req)
File "/usr/pkg/lib/python3.10/site-packages/mercurial/dispatch.py", line 250,
in dispatch
status = _rundispatch(req)
File "/usr/pkg/lib/python3.10/site-packages/mercurial/dispatch.py", line 294,
in _rundispatch
ret = _runcatch(req) or 0
File "/usr/pkg/lib/python3.10/site-packages/mercurial/dispatch.py", line 470,
in _runcatch
return _callcatch(ui, _runcatchfunc)
File "/usr/pkg/lib/python3.10/site-packages/mercurial/dispatch.py", line 480,
in _callcatch
return scmutil.callcatch(ui, func)
File "/usr/pkg/lib/python3.10/site-packages/mercurial/scmutil.py", line 153,
in callcatch
return func()
File "/usr/pkg/lib/python3.10/site-packages/mercurial/dispatch.py", line 460,
in _runcatchfunc
return _dispatch(req)
File "/usr/pkg/lib/python3.10/site-packages/mercurial/dispatch.py", line
1273, in _dispatch
return runcommand(
File "/usr/pkg/lib/python3.10/site-packages/mercurial/dispatch.py", line 918,
in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/usr/pkg/lib/python3.10/site-packages/hgext/pager.py", line 78, in
pagecmd
return orig(ui, options, cmd, cmdfunc)
File "/usr/pkg/lib/python3.10/site-packages/mercurial/dispatch.py", line
1285, in _runcommand
return cmdfunc()
File "/usr/pkg/lib/python3.10/site-packages/mercurial/dispatch.py", line
1271, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
File "/usr/pkg/lib/python3.10/site-packages/mercurial/util.py", line 1887, in
check
return func(*args, **kwargs)
File "/usr/pkg/lib/python3.10/site-packages/hgext/convert/__init__.py", line
511, in convert
return convcmd.convert(ui, src, dest, revmapfile, **opts)
File "/usr/pkg/lib/python3.10/site-packages/hgext/convert/convcmd.py", line
670, in convert
c.convert(sortmode)
File "/usr/pkg/lib/python3.10/site-packages/hgext/convert/convcmd.py", line
548, in convert
heads = self.source.getheads()
File "/usr/pkg/lib/python3.10/site-packages/hgext/convert/cvs.py", line 257,
in getheads
self._parse()
File "/usr/pkg/lib/python3.10/site-packages/hgext/convert/cvs.py", line 95,
in _parse
db = cvsps.createchangeset(
File "/usr/pkg/lib/python3.10/site-packages/hgext/convert/cvsps.py", line
691, in createchangeset
t = b'%d %s' % (len(changesets), repr(e.comment)[1:-1])
TypeError: %b requires a bytes-like object, or an object that implements
__bytes__, not 'str'
That's with python3, so perhaps a python 2 -> python 3 conversion bug?
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list