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

Announcing a new (prototype) git-remote-hg tool

From
Mike Hommey <mh@glandium.org>
Date
Dec 5, 2014, 20:53 UTC
Message-ID
<20141205205335.GA28935@glandium.org>
Hi,

I've (re)started work on a longstanding idea of mine of having a git tool talking the mercurial wire protocol directly. I'm now at a stage where the tool can clone and pull/fetch from mercurial.

As it is a prototype, there are many things that it doesn't handle (like named branches, bookmarks, phases, obsolescence markers), but it currently transposes a complete mercurial dag to git and maintains metadata about the original mercurial data.

Code on https://github.com/glandium/git-remote-hg

It doesn't support push, but support for that should come in the coming weeks.

More background on http://glandium.org/blog/?p=3382

This is meant to be a prototype, and will stay that way for now. It's a validation that this can actually work. Now that I have pull support I know I can make it push. I'm currently evaluating what the final tool would look like. I'm *very* tempted to implement it in C, based on core git code, because there are many things that this helper does that would be so much easier to do with direct access to git's guts. And that wouldn't require more dependencies than git currently has: it would "just" need curl and ssh, and git already uses both.

If I were to go in that direction, would you consider integrating it in git core? If not, would you rather see git helpers to make this git-remote-hg helper more efficient?

Cheers,
Mike
Next: Jonathan Nieder
Message 1 of 9 in “Announcing a new (prototype) git-remote-hg tool”
  1. Mike HommeyDec 5, 2014
  2. Jonathan NiederDec 5, 2014
  3. Jeff KingDec 5, 2014
  4. Jonathan NiederDec 5, 2014
  5. Mike HommeyDec 5, 2014
  6. Jeff KingDec 6, 2014
  7. Mike HommeyDec 5, 2014
  8. Philip OakleyDec 5, 2014
  9. Announcing git-cinnabar 0.1.0 (Was: Announcing a new (prototype) git-remote-hg tool)Mike Hommey, Feb 11, 2015

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.