convert extension

Will Maier willmaier at ml1.net
Fri Jul 20 08:51:12 CDT 2007


On Fri, Jul 20, 2007 at 09:05:19AM -0400, Neal Becker wrote:
> I'm trying to convert from cvs to hg.  I have an external project
> (boost library) that I am making local changes to.
> 
> I'm running hg convert, but it's taking forever.  There are >30000
> cvs revisions.
> 
> I really don't care about preserving the cvs history.  Can I just
> convert starting at some date, or even just the current cvs head?

If you don't care about history, there's no reason to convert.

    $ cvs co your_project
    $ cd your_project
    $ echo '.*/CVS/?' > .hgignore
    $ hg ci -A -m "Import your_project version 42"
    <hack>

Then periodically pull new upstream code from CVS and check it in as
above.

You might want to use something like MQ to manage your changes; the
HGbook[0] has great descriptions of several MQ workflows, as well as
hints on how to use hg to hack on upstream code.

[0] http://hgbook.red-bean.com/

-- 

[Will Maier]-----------------[willmaier at ml1.net|http://www.lfod.us/]


More information about the Mercurial mailing list