[issue1743] AttributeError when importing CVS repository

Willem Verstraeten mercurial-bugs at selenic.com
Fri Jul 17 08:14:38 CDT 2009

New submission from Willem Verstraeten <willem.verstraeten at gmail.com>:

When importing a CVS repository with the following command:

hg convert --config convert.cvsps=builtin --config
convert.cvsps.mergeto='Merged changes from (BRANCH_.*) between .*' -A
cvs2hgauthors  --filemap lucy_file_map CVS_working_dir/product/LuciadMap/Lucy/

I get following exception after a while:

** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 1.3)
** Extensions loaded: convert, rebase, bisect, color, graphlog
Traceback (most recent call last):
  File "/home/release/bin/hg", line 27, in <module>
  File "/home/release/lib/python/mercurial/dispatch.py", line 16, in run
  File "/home/release/lib/python/mercurial/dispatch.py", line 27, in dispatch
    return _runcatch(u, args)
  File "/home/release/lib/python/mercurial/dispatch.py", line 43, in _runcatch
    return _dispatch(ui, args)
  File "/home/release/lib/python/mercurial/dispatch.py", line 449, in _dispatch
    return runcommand(lui, repo, cmd, fullargs, ui, options, d)
  File "/home/release/lib/python/mercurial/dispatch.py", line 317, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/home/release/lib/python/mercurial/dispatch.py", line 501, in
    return checkargs()
  File "/home/release/lib/python/mercurial/dispatch.py", line 454, in checkargs
    return cmdfunc()
  File "/home/release/lib/python/mercurial/dispatch.py", line 448, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/home/release/lib/python/mercurial/util.py", line 370, in check
    return func(*args, **kwargs)
  File "/home/release/lib/python/hgext/convert/__init__.py", line 232, in
    return convcmd.convert(ui, src, dest, revmapfile, **opts)
  File "/home/release/lib/python/hgext/convert/convcmd.py", line 395, in convert
  File "/home/release/lib/python/hgext/convert/convcmd.py", line 311, in convert
    heads = self.source.getheads()
  File "/home/release/lib/python/hgext/convert/filemap.py", line 193, in
    return self.base.getheads()
  File "/home/release/lib/python/hgext/convert/cvs.py", line 292, in getheads
  File "/home/release/lib/python/hgext/convert/cvs.py", line 85, in _parse
    mergefrom=self.ui.config('convert', 'cvsps.mergefrom', None))
  File "/home/release/lib/python/hgext/convert/cvsps.py", line 667, in
    while p.synthetic:
AttributeError: 'changeset' object has no attribute 'synthetic'

messages: 10077
nosy: willemv
priority: bug
status: unread
title: AttributeError when importing CVS repository

Mercurial issue tracker <mercurial-bugs at selenic.com>

More information about the Mercurial-devel mailing list