cvs conversion with ConvertExtension - branches/versions in CVS require merging
Richard Murray
Richard.Murray at orchard-systems.co.uk
Wed Jul 14 13:57:02 UTC 2010
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
________________________________
Richard Murray
Java Developer & Integration Specialist
Orchard Information Systems Limited
-----Original Message-----
From: gerg.ward at gmail.com [mailto:gerg.ward at gmail.com] On Behalf Of Greg Ward
Sent: 14 July 2010 14:24
To: Richard Murray
Cc: mercurial at selenic.com
Subject: Re: cvs conversion with ConvertExtension - branches/versions in CVS
require merging
On Tue, Jul 13, 2010 at 11:54 AM, Richard Murray
<Richard.Murray at orchard-systems.co.uk> wrote:
> I've attempted to convert our CVS repository to Mercurial using the
> ConvertExtension but have a couple of problems with Branches. I'm using
> Mercurial version 1.5.4 (on Windows)
Unfortunately, 'hg convert' does not really handle CVS branches and
tags in their full insane generality. That's because it's based on
cvsps, which does not fully handle CVS branches or tags.
Only cvs2svn really understands CVS in all its madness. I wrote a new
hg backend for cvs2svn that has not been merged in upstream, but it's
pretty good. Just clone http://hg.gerg.ca/cvs2svn, read
README.csv2hg, and have fun. Good luck! Getting a good conversion
out of CVS is not trivial.
Greg
More information about the Mercurial
mailing list