Guess renames and moves while converting a CVS repository

npiguet at romandie.com npiguet at romandie.com
Thu Apr 8 07:10:41 CDT 2010


I've tried doing a simple `git-cvsimport` followed by `hg clone` of the git
repository. While the sequence does produce a correct hg repo, it doesn't
seem to have guessed renames at all. Is there something special to configure
in hg-git to do the rename detection?

En réponse à Augie Fackler <lists at durin42.com> :
> ------------------ Début du message d'origine --------------------
> 
> 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
> >
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
> 
> ------------------- Fin du message d'origine ---------------------





More information about the Mercurial mailing list