Guess renames and moves while converting a CVS repository

Augie Fackler lists at durin42.com
Wed Apr 7 12:28:09 CDT 2010


On Wed, Apr 7, 2010 at 12:14 PM, Matt Mackall <mpm at selenic.com> wrote:
> 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.

hg-git has code to try and infer renames from git's codebase. You
might be able to repurpose that into convert to allow rename detection
there.

>
> --
> http://selenic.com : development and support for Mercurial and Linux
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>


More information about the Mercurial mailing list