error in converting from svn

marco gaddoni marco.gaddoni at gmail.com
Sun Jan 3 03:35:31 CST 2010


On Sat, Jan 2, 2010 at 19:17, hg user <mercurialuser at gmail.com> wrote:
>
> I just updated to 1.4.2 to see if the problem disappeared but it did not....
>
> I'm converting a svn project hosted on sourceforge... it took more than 2
> days to reach this commit that gives error... so if some developer needs to
> download this repository I can put it somewhere for download.
>
> Thank you
> Francesco
>

hello,

i did try this myself and succeded to convert
the repository.

steps:

1.
rsync the svn from sourceforge (to avoid loading
their machines and network problems)

 rsync -av harbour-project.svn.sourceforge.net::svn/harbour-project/* hp

2. run a local svn server
svnserve -d -r hp

3. convert
 hg convert svn://localhost/ hp-hp

the conversion seem to be ok; i did not
try to verify the correct corrispondence between
svn and hg.

it took ~ 5hours on my pc.

Mercurial Distributed SCM (version 1.4.1)

Copyright (C) 2005-2009 Matt Mackall <mpm at selenic.com> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ dpkg -l | grep subversion
ii  python-subversion
1.6.3dfsg-1                        Python bindings for Subversion
ii  subversion
1.6.3dfsg-1                        Advanced version control system

if you need the mercurial repository please
let me know where to upload.

Ciao, Marco.

> hg convert harbour-project
> assuming destination harbour-project-hg
> scanning source...
> sorting...
> converting...
> 5519 2007-10-21 02:52 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
> 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.4.2)
> ** Extensions loaded: convert, graphlog
> Traceback (most recent call last):
>   File "/usr/bin/hg", line 5, in <module>
>     pkg_resources.run_script('mercurial==1.4.2', 'hg')
>   File
> "/usr/lib64/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py",
> line 448, in run_script
>   File
> "/usr/lib64/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py",
> line 1166, in run_script
>   File
> "/usr/lib64/python2.6/site-packages/mercurial-1.4.2-py2.6-linux-x86_64.egg/EGG-INFO/scripts/hg",
> line 27, in <module>
>     mercurial.dispatch.run()
>   File
> "/usr/lib64/python2.6/site-packages/mercurial-1.4.2-py2.6-linux-x86_64.egg/mercurial/dispatch.py",
> line 16, in run
>     sys.exit(dispatch(sys.argv[1:]))
>   File
> "/usr/lib64/python2.6/site-packages/mercurial-1.4.2-py2.6-linux-x86_64.egg/mercurial/dispatch.py",
> line 30, in dispatch
>     return _runcatch(u, args)
>   File
> "/usr/lib64/python2.6/site-packages/mercurial-1.4.2-py2.6-linux-x86_64.egg/mercurial/dispatch.py",
> line 46, in _runcatch
>     return _dispatch(ui, args)
>   File
> "/usr/lib64/python2.6/site-packages/mercurial-1.4.2-py2.6-linux-x86_64.egg/mercurial/dispatch.py",
> line 454, in _dispatch
>     return runcommand(lui, repo, cmd, fullargs, ui, options, d)
>   File
> "/usr/lib64/python2.6/site-packages/mercurial-1.4.2-py2.6-linux-x86_64.egg/mercurial/dispatch.py",
> line 324, in runcommand
>     ret = _runcommand(ui, options, cmd, d)
>   File
> "/usr/lib64/python2.6/site-packages/mercurial-1.4.2-py2.6-linux-x86_64.egg/mercurial/dispatch.py",
> line 505, in _runcommand
>     return checkargs()
>   File
> "/usr/lib64/python2.6/site-packages/mercurial-1.4.2-py2.6-linux-x86_64.egg/mercurial/dispatch.py",
> line 459, in checkargs
>     return cmdfunc()
>   File
> "/usr/lib64/python2.6/site-packages/mercurial-1.4.2-py2.6-linux-x86_64.egg/mercurial/dispatch.py",
> line 453, in <lambda>
>     d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
>   File
> "/usr/lib64/python2.6/site-packages/mercurial-1.4.2-py2.6-linux-x86_64.egg/mercurial/util.py",
> line 386, in check
>     return func(*args, **kwargs)
>   File
> "/usr/lib64/python2.6/site-packages/mercurial-1.4.2-py2.6-linux-x86_64.egg/hgext/convert/__init__.py",
> line 229, in convert
>     return convcmd.convert(ui, src, dest, revmapfile, **opts)
>   File
> "/usr/lib64/python2.6/site-packages/mercurial-1.4.2-py2.6-linux-x86_64.egg/hgext/convert/convcmd.py",
> line 398, in convert
>     c.convert(sortmode)
>   File
> "/usr/lib64/python2.6/site-packages/mercurial-1.4.2-py2.6-linux-x86_64.egg/hgext/convert/convcmd.py",
> line 329, in convert
>     self.copy(c)
>   File
> "/usr/lib64/python2.6/site-packages/mercurial-1.4.2-py2.6-linux-x86_64.egg/hgext/convert/convcmd.py",
> line 301, in copy
>     self.source, self.map)
>   File
> "/usr/lib64/python2.6/site-packages/mercurial-1.4.2-py2.6-linux-x86_64.egg/hgext/convert/hg.py",
> line 166, in putcommit
>     self.repo.commitctx(ctx)
>   File
> "/usr/lib64/python2.6/site-packages/mercurial-1.4.2-py2.6-linux-x86_64.egg/mercurial/localrepo.py",
> line 877, in commitctx
>     changed)
>   File
> "/usr/lib64/python2.6/site-packages/mercurial-1.4.2-py2.6-linux-x86_64.egg/mercurial/localrepo.py",
> line 723, 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
>
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
>



-- 
"Reality continues to ruin my life." - Calvin.


More information about the Mercurial mailing list