Combining several CVS modules into one HG repository

David Ishee yigyw4d02 at sneakemail.com
Tue Aug 28 08:24:38 CDT 2007


How does your fromcvs handle branches? I can't find a description anywhere. Do they become named branches inside a single repository?

I currently have a CVS repo like this:

/home/proj/repository

below "repository" I have the CVS modules. The CVSROOT is at the "repository" level. 

Another idea:

Is it possible to combine two hg repositories once they are created? For example, I convert a module named "proj" and a module "proj_admin" into two separate hg repositories. I combine them into a new top-level directory (somehow), and try to pull out a tag originally created in CVS (the same tag exists on all modules). Could this work?


David 

-----Original Message-----
From: Simon 'corecode' Schubert corecode-at-fs.ei.tum.de |Mercurial| [mailto:...] 
Sent: Monday, August 27, 2007 4:51 PM
To: Ishee, David M
Cc: mercurial at selenic.com
Subject: Re: Combining several CVS modules into one HG repository

David Ishee wrote:
> I have a CVS repository with a lot of history. It has several 
> top-level modules. I would like to convert the project over to 
> Mercurial, and I would like to put all these modules into one hg 
> repository (preserving history if possible). Is it possible? I have an 
> aliased module in CVS that points to the other modules, would that help?

just create a new toplevel directory and symlink/copy the ,v files as you desire.

> I'm playing with Tailor to do the conversion from CVS to hg. 

you can try tailor, but it will need some configuration and it won't convert branches.  then there is hg cvsimport, i think.  and you could try my fromcvs/tohg converter.  in any case if it is a simple cvs repo without much ugly surgery, all tools should behave.

cheers
  simon

-- 
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \



More information about the Mercurial mailing list