git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[ANN] mtn2git v0.1

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Sep 12, 2008, 22:59 UTC
Message-ID
<94a0d4530809121559w5f644174j461ec61cb2327fd8@mail.gmail.com>
Hi,

This is the result of various experiments I've been doing while trying to import mtn repositories into git. I've looked into other mtn2git scripts but none fitted my needs.

After some rfcs on git and monotone mailing lists it seems now the script is going in the right direction.

There are two modes:
== checkout ==

In this mode each revision is checked out and imported directly into git. This means it's 100% sure that the result would be an exact clone.

The disadvantage is that it's extremely slow (1 day for 25,000 commits).
== fast-import ==

This mode requires a few patches for git fast-import, it's very fast (40 min for 25,000 commits), but not 100% reliable yet.

There are also some missing features like branch creation and updates.

My plan is to keep these two modes in the code until fast-import method is reliable enough.

I've tried this with Pidgin's repository. The result is here: http://github.com/felipec/pidgin-clone

It would be interesting to do something similar with OE's repo. Any takers?
Comments and patches are welcome :)
-- 
Felipe Contreras
Next: Jakub Narebski
Message 1 of 6 in “[ANN] mtn2git v0.1”
  1. Felipe ContrerasSep 12, 2008
  2. Jakub NarebskiSep 13, 2008
  3. Felipe ContrerasSep 13, 2008
  4. Jakub NarebskiSep 13, 2008
  5. Felipe ContrerasSep 13, 2008
  6. Markus WannerSep 15, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.