Migration considerations

Felipe Contreras felipe.contreras at gmail.com
Tue Feb 8 18:54:08 EST 2011

On Tue, Feb 8, 2011 at 5:54 PM, Richard Laager <rlaager at wiktel.com> wrote:
> On Tue, 2011-02-08 at 06:42 +0200, Felipe Contreras wrote:
>> > This is inline metadata (part of
>> > the commit message). It's a Linux convention, not part of git.
>> It is part of git:
>> % git commit --signoff
> I forgot git had that command line syntactic sugar. The underlying
> point, however, was that git has *first-class* author and commit fields.
> Signoffs are related (and good).

Sure, but they are often not enough:

    Acked-by: Eric Wong <normalperson at yhbt.net>
    Signed-off-by: Jonathan Nieder <jrnieder at gmail.com>
    Acked-by: Jakub Narebski <jnareb at gmail.com>
    Signed-off-by: Junio C Hamano <gitster at pobox.com>

    Reported-by: Michel Briand <michelbriand at free.fr>
    Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds at gmail.com>
    Signed-off-by: Junio C Hamano <gitster at pobox.com>

But sure, committer and author are part of the database. It's nice to
be able to do queries like 'git log --author', or 'git log

>> >> No, you could just use 'git filter-branch' as I do in pidgin-git-import.
> ...
>> > That said, `hg convert`'s (lack of) speed is a disadvantage, albeit
>> > minor since it only needs to be run once. If you'd like to improve the
>> > migration process, I'll certainly accept patches, as you know.
>> You mean, more than the ones I have already contributed?
> I don't see any filter-branch code in your fc-updates branch:
> rlaager at HOSTNAME:~/src/pidgin-hg-convert$ git log | head -n1
> commit 00b37886a84809ed86e08737eab87379c32fab04
> rlaager at HOSTNAME:~/src/pidgin-hg-convert$ grep filter *
> rlaager at HOSTNAME:~/src/pidgin-hg-convert$
> migrate.sh in your branch still calls hg convert. I must be missing the
> patch you're referring to.

You said "improve the migration process", not the speed.

Anyway, the good stuff is in the usual place:

I have added a script that does the repository fixes in a single 'git
filter-branch' command. The fixing process takes 30m, which makes the
total 50m. I'm sure the git->hg conversion cannot take much more.


Felipe Contreras

More information about the Devel mailing list