[issue1743] AttributeError when importing CVS repository
Patrick Mézard
pmezard at gmail.com
Fri Jul 17 17:20:46 CDT 2009
Alpar Juttner a écrit :
> On Fri, 2009-07-17 at 13:14 +0000, Willem Verstraeten wrote:
>> 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:
>
> I've just run into another error when converting from svn. It appears
> consistently at the commit numbered 91 below if I rerun hg convert.
>
> Any idea what can be wrong with that commit?
>
> Regards,
> Alpar
>
> $ hg convert svn://svn.openwrt.org/openwrt .
> scanning source...
> sorting...
> converting...
> 891 Merge r15072 to 8.09 (#5103)
> 890 [packages] ruby: add dependency on ruby-core to ruby-irb (closes:
> #5112)
> 889 [packages] lcd4linux: only build routerboard driver on rb532
> 888 [8.09] [packages] libsigc++, libtorrent, rtorrent: merge fixes
> from ./packages to 8.09 (closes: #4997)
>
> [Snip a lot of commit]
>
> 95 Fix typo in r15659
> 94 remove obsolete prereq checks
> 93 clean up / fix various Host/Clean templates in tools/ (backport from
> r15714)
> 92 add missing dependency
> 91 restore 2.6.23 support for rb532. 2.6.24 is 100% broken and was only
> added accidentally
> transaction abort!
> rollback completed
> ** 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, children, hgk, graphlog
> Traceback (most recent call last):
> File "/usr/bin/hg", line 27, in <module>
> mercurial.dispatch.run()
> File "/usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line
> 16, in run
> sys.exit(dispatch(sys.argv[1:]))
> File "/usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line
> 27, in dispatch
> return _runcatch(u, args)
> File "/usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line
> 43, in _runcatch
> return _dispatch(ui, args)
> File "/usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line
> 449, in _dispatch
> return runcommand(lui, repo, cmd, fullargs, ui, options, d)
> File "/usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line
> 317, in runcommand
> ret = _runcommand(ui, options, cmd, d)
> File "/usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line
> 501, in _runcommand
> return checkargs()
> File "/usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line
> 454, in checkargs
> return cmdfunc()
> File "/usr/lib64/python2.5/site-packages/mercurial/dispatch.py", line
> 448, in <lambda>
> d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
> File "/usr/lib64/python2.5/site-packages/mercurial/util.py", line 370,
> in check
> return func(*args, **kwargs)
> File "/usr/lib64/python2.5/site-packages/hgext/convert/__init__.py",
> line 232, in convert
> return convcmd.convert(ui, src, dest, revmapfile, **opts)
> File "/usr/lib64/python2.5/site-packages/hgext/convert/convcmd.py",
> line 395, in convert
> c.convert(sortmode)
> File "/usr/lib64/python2.5/site-packages/hgext/convert/convcmd.py",
> line 329, in convert
> self.copy(c)
> File "/usr/lib64/python2.5/site-packages/hgext/convert/convcmd.py",
> line 301, in copy
> self.source, self.map)
> File "/usr/lib64/python2.5/site-packages/hgext/convert/hg.py", line
> 164, in putcommit
> self.repo.commitctx(ctx)
> File "/usr/lib64/python2.5/site-packages/mercurial/localrepo.py", line
> 930, in commitctx
> changed)
> File "/usr/lib64/python2.5/site-packages/mercurial/localrepo.py", line
> 776, in _filecommit
> self.ui.debug(_(" %s: copy %s:%s\n") % (fname, cfname, hex(crev)))
> TypeError: b2a_hex() argument 1 must be string or read-only buffer, not
> None
> $
I cannot reproduce it with crew tip (though I did not convert to '.' but to openwrt-hg).
You can find an svnsync mirror here (made with svn 1.6.3):
http://mezard.eu/share/openwrt.tar.bz2
--
Patrick Mézard
More information about the Mercurial-devel
mailing list