CVS Conversion to Hg

Matt Mackall mpm at selenic.com
Mon Mar 10 01:52:37 CDT 2008


On Sun, 2008-03-09 at 22:54 -0400, Paul Franz wrote:
> 
> Giorgos Keramidas wrote:
> > On 2008-03-08 23:41, Paul Franz <theandromedan at gmail.com> wrote:
> >   
> >> I am working on converting my CVS repository to a Hg. The problem is
> >> that when I try to convert it I get a new Hg repository for each
> >> module.  I would like to all of the modules (which are actually all
> >> one project) to be in a single repository without losing history of
> >> the changes. Is this possible?
> >>     
> >
> > How are you doing the conversion?  That is a good starting point before
> > we understand why you see `split modules'.
> >
> >
> >   
> 
> These are the commands that I execute:
> 
> mkdir ~/work2
> cd ~/work2
> cvs checkout src
> cvs checkout res
> cvs checkout build
> mkdir ~/work
> hg init .
> hg convert ~/work2/src src
> hg convert ~/work2/res res
> hg convert ~/work2/build build
> 
> the result is that src,res and build are separate hg respositories with 
> all of the history.
> 
> if I try
> 
> 
> mkdir ~/work2
> cd ~/work2
> cvs checkout src
> cvs checkout res
> cvs checkout build
> mkdir ~/work
> hg init .
> hg convert ~/work2 .
> 
> the result is:
> 
> destination . is a Mercurial repository
> scanning source...
> sorting...
> converting...

What you need to do is use CVS modules configuration to pull all those
parts into one CVS checkout workspace and convert that. Don't ask me how
to do that though, I've suppressed those memories.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial mailing list