Guess renames and moves while converting a CVS repository

Matt Mackall mpm at selenic.com
Wed Apr 7 12:14:29 CDT 2010


On Wed, 2010-04-07 at 18:05 +0100, Tom Widmer wrote:
> npiguet at romandie.com wrote:
> > Hello,
> > 
> > Is there any way to convert a CVS repository with mercurial and let
> > mercurial try to track renames and moves at the same time? Is there any way
> > to let the convert extension try to use a feature similar to the
> > --similarity options for addremove?
> 
> One option is to import it into Git (which does after-the-event rename 
> detection), and then convert to HG using hg convert (assuming that 
> retains the rename information from Git - I don't know if it does or 
> not.

This is a common misconception about Git. There is no rename information
stored in its history. It always guesses. And as far as I'm aware, none
of the Git to Mercurial conversion tools currently try to invoke Git's
guessing engine so that the guesses will be stored and used by
Mercurial.

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial mailing list