Combining several CVS modules into one HG repository

Simon 'corecode' Schubert corecode at fs.ei.tum.de
Wed Aug 29 02:21:55 CDT 2007


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

Yes, they become named branches.

> 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. 

Is there a question or is this just for illustrating the original one?  If so, let me explain in detail:

you have a structure like
/cvs
/cvs/CVSROOT
/cvs/mod1
/cvs/mod2

now you can combine them by creating a directory
/cvs/bigmod

and moving/symlinking the original modules there
/cvs/bigmod/mod1
/cvs/bigmod/mod2

> 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?

No, hg repos are single entities.  But you can convert the cvs modules together, thus creating one hg repo.

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