hg convert - partial conversions?

Brian Wallis brian.wallis at infomedix.com.au
Wed Feb 13 17:41:10 CST 2008


On 13/02/2008, at 9:50 PM, Jesse Glick wrote:
> Are you sure you want to discard old history? I found that at least  
> for
> text files, Hg's compression is quite good, and that importing our  
> nine
> years of history added only about 20% to the repo size. I would  
> suggest
> measuring before you make a decision.

It would be nice to keep all the old stuff but a 'dumb' conversion of  
the whole thing ends up with 3.7G repository including the workspace  
(which is 1.7G). We only have the one CVS module with everything in  
it and it contains way too many binary files (a lot of which are not  
marked as binary causing other issues).

> For my own CVS -> Hg conversion of a big repo, I decided to convert  
> the
> trunk history of text files, leaving branches (and branch tags and  
> tags
> on branches, but not trunk tags) in the old CVS repo for archival
> purposes, and import binary files only in the head version. The key
> script for this purpose in case you find it useful:
>
> http://deadlock.netbeans.org/fisheye/browse/netbeans/apisupportx/ 
> hgimport/lib/prepcvs.rb?r=MAIN

I'll check that out, thanks.

I'm currently experimenting with converting the CVS repository into a  
forest of Hg repositories. I need to split this project up into  
separate subsystems soon anyway so now might be the best time to do  
that as well. Might be able to discard a lot of the binary files.

>
> It has some extra stuff in it to collect author names (for  
> convert's -A
> option), as well as to do path translation (you could use a mapfile
> instead if your needs are simpler than mine were). After running hg
> convert with the resulting "postprocessed" CVS repo, just cvs export
> -rHEAD && hg ci -A to get the binary files.
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial

Brian Wallis
InfoMedix
p: 3 8615 4553 | f: 3 8615 4501 | e: brian.wallis at infomedix.com.au
Level 5, 451 Little Bourke Street, Melbourne VIC 3000





More information about the Mercurial mailing list