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

Re: [Monotone-devel] Re: [RFC] mtn to git conversion script

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Sep 4, 2008, 09:43 UTC
Message-ID
<94a0d4530809040243k49635fd3kfef1ee22a6865e98@mail.gmail.com>
In-Reply-To
<94a0d4530808280203o6d97f69we4768115e12800c2@mail.gmail.com>

On Thu, Aug 28, 2008 at 12:03 PM, Felipe Contreras <felipe.contreras@gmail.com> wrote:

Show 25 quoted lines
> On Thu, Aug 28, 2008 at 8:57 AM, Anand Kumria <wildfire@progsoc.org> wrote:
>>
>> Hi Felipe,
>>
>> On Mon, 25 Aug 2008 03:45:11 +0300, Felipe Contreras wrote:
>>
>>>
>>> Anyway, very nice tool. It's going much faster (1h) compared to before
>>> (1 day).
>>
>> Will you be submitting this as something for/to contrib?
>
> Yes, that's the plan.
>
> However, I still don't have something that creates an exact clone with
> fast-import.
>
> Also, I'm trying different ways to see what would be most efficient.
> Right now it's a combination of Ruby + C, but once I get it working
> I'll post it to the OE mailing lists to see if it works fine for them
> too.
>
> Once the design is good enough I might move everything to C.
>
> Best regards.

Ok, now the basics seem to be working. So I'm uploading some code if anyone wants to take a look.

The C code is generating a topologically sorted list of revisions, and storing the relevant information (certs and parents) separately. This code is very fast. It's using GLib and sqlite3, so probably the GLib stuff should be converted to use libgit. http://gist.github.com/8742

The Ruby code takes that input and generates an output suitable for fast-import. It would be tedious to port the parsing stuff to C, but straightforward. http://gist.github.com/8740

A patch for fast-import is required, I already submitted it.
Comments?
-- 
Felipe Contreras
Previous: Felipe ContrerasNext: Jakub Narebski
Message 10 of 21 in “[RFC] mtn to git conversion script”
  1. Felipe ContrerasAug 24, 2008
  2. Miklos VajnaAug 24, 2008
  3. Johannes SchindelinAug 24, 2008
  4. Miklos VajnaAug 24, 2008
  5. Felipe ContrerasAug 24, 2008
  6. Shawn O. PearceAug 24, 2008
  7. Felipe ContrerasAug 25, 2008
  8. Anand KumriaAug 28, 2008
  9. Felipe ContrerasAug 28, 2008
  10. Felipe ContrerasSep 4, 2008
  11. Jakub NarebskiSep 4, 2008
  12. Felipe ContrerasSep 4, 2008
  13. Thomas MoschnySep 4, 2008
  14. Felipe ContrerasSep 4, 2008
  15. Brian DowningAug 25, 2008
  16. Brian DowningAug 25, 2008
  17. Felipe ContrerasAug 25, 2008
  18. Brian DowningAug 25, 2008
  19. Anand KumriaAug 28, 2008
  20. Juan Jose ComellasNov 11, 2008
  21. Juan Jose ComellasNov 11, 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.