AttributeError: 'dict' object has no attribute 'iteritems'
- Mercurial 6.4 or 5.5
- python3.7 or python3.9
- mercurial-cvs2hg changeset id 0cded99792c6 (2020-08-08)
=============================
% python3.7 /tmp/mercurial-cvs2hg/cvs2hg --hgrepos newhgrepo somecvsrepo
Traceback (most recent call last):
File "/tmp/mercurial-cvs2hg/cvs2hg", line 33, in <module>
hg_main(os.path.basename(sys.argv[0]), sys.argv[1:])
File "/tmp/mercurial-cvs2hg/cvs2hg_lib/main.py", line 110, in hg_main
run_options = HgRunOptions(progname, cmd_args, pass_manager)
File "/tmp/mercurial-cvs2hg/cvs2hg_lib/hg_run_options.py", line 85, in __init__
super(HgRunOptions, self).__init__(*args, **kwargs)
File "/tmp/mercurial-cvs2hg/cvs2hg_lib/dvcs_common.py", line 73, in __init__
RunOptions.__init__(self, progname, cmd_args, pass_manager)
File "/tmp/mercurial-cvs2hg/cvs2hg_lib/run_options.py", line 267, in __init__
self.process_options()
File "/tmp/mercurial-cvs2hg/cvs2hg_lib/dvcs_common.py", line 123, in process_options
self.process_output_options()
File "/tmp/mercurial-cvs2hg/cvs2hg_lib/hg_run_options.py", line 156, in process_output_options
author_transforms={},
File "/tmp/mercurial-cvs2hg/cvs2hg_lib/hg_output_option.py", line 194, in __init__
self.author_transforms = self.normalize_author_transforms(author_transforms)
File "/tmp/mercurial-cvs2hg/cvs2hg_lib/dvcs_common.py", line 165, in normalize_author_transforms
for (cvsauthor, dvcsauthor) in author_transforms.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'
After trying with the latest mercurial (6.4), I noticed in the commit log that mercurial 5.5 is the latest tested version (changeset 99faa88fb357). So I tested with mercurial 5.5 as well. Same results.
Tested with a simple single file CVS repo.