cvs conversion with ConvertExtension - branches/versions in CVS require merging

Mads Kiilerich mads at kiilerich.com
Wed Jul 14 20:46:21 UTC 2010


  Richard Murray wrote, On 07/14/2010 03:57 PM:
> Thanks!  I've just tried running your cvs2hg but get a Python error, see
> below.  I'm running on Solaris 10, with Python 2.6 and Mercurial 1.5.4.
>
> I don't know Python at all, could you advise?
>
> Incidentally this is the same issue I get trying to run the standard cvs2svn
> tool (which I've raised on the cvs2svn mailing list here
> http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=263282
> 2)
>
> bash-3.00$ ./cvs2hg --hgrepos myproject.hg
> /home/orchard/uwm-cvs-copy/cvsroot/gui
> /usr/local/lib/python2.6/hashlib.py:63: DeprecationWarning: the md5 module is
> deprecated; use hashlib instead
>    import _md5
> /home/orchard/hg-cvs2svn/cvs2svn/cvs2svn_lib/dumpfile_delegate.py:23:
> DeprecationWarning: the md5 module is deprecated;
> use hashlib instead
>    from md5 import new as md5
> /usr/local/lib/python2.6/hashlib.py:63: DeprecationWarning: the md5 module is
> deprecated; use hashlib instead
>    import _md5
> Traceback (most recent call last):
>    File "./cvs2hg", line 86, in<module>
>      from cvs2svn_lib.main import hg_main
>    File "/home/orchard/hg-cvs2svn/cvs2svn/cvs2svn_lib/main.py", line 30, in
> <module>
>      from cvs2svn_lib.svn_run_options import SVNRunOptions
>    File "/home/orchard/hg-cvs2svn/cvs2svn/cvs2svn_lib/svn_run_options.py",
> line 36, in<module>
>      from cvs2svn_lib.svn_output_option import DumpfileOutputOption
>    File "/home/orchard/hg-cvs2svn/cvs2svn/cvs2svn_lib/svn_output_option.py",
> line 49, in<module>
>      from cvs2svn_lib.dumpfile_delegate import DumpfileDelegate
>    File "/home/orchard/hg-cvs2svn/cvs2svn/cvs2svn_lib/dumpfile_delegate.py",
> line 23, in<module>
>      from md5 import new as md5
>    File "/usr/local/lib/python2.6/md5.py", line 10, in<module>
>      from hashlib import md5
>    File "/usr/local/lib/python2.6/hashlib.py", line 136, in<module>
>      md5 = __get_builtin_constructor('md5')
>    File "/usr/local/lib/python2.6/hashlib.py", line 63, in
> __get_builtin_constructor
>      import _md5
>    File "/usr/local/lib/python2.6/_md5.py", line 10, in<module>
> ImportError: cannot import name md5

It looks like your python installation is broken somehow.

/Mads



More information about the Mercurial mailing list