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

Re: Can git pull from a mercurial repository?

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Oct 17, 2012, 12:44 UTC
Message-ID
<CAMP44s2DtMfeDQqgQfBamC3ZpbssnRrzveqP5nQ6Sehaw4+oVQ@mail.gmail.com>
In-Reply-To
<37D17798-4BDC-433D-A9B4-49F4352754D9@quendi.de>
Hi,
On Tue, Sep 25, 2012 at 4:15 PM, Max Horn <postbox@quendi.de> wrote:
Show 21 quoted lines
> On 18.09.2012, at 14:40, Joachim Schmitz wrote:
>
>>> From: Andreas Ericsson [mailto:ae@op5.se]
>>> Sent: Tuesday, September 18, 2012 1:46 PM
>>> To: Joachim Schmitz
>>> Cc: git@vger.kernel.org
>>> Subject: Re: Can git pull from a mercurial repository?
>>>
>>> On 09/18/2012 01:22 PM, Joachim Schmitz wrote:
>>>> Is there an easy way to get git to clone/pull from a Mercurial repository?
>>>>
>>>
>>> Yes. Google "git remote helpers" and you'll most likely find it.
>>
>> Well, I found a few. No idea how to get them to work though (so far for the 'easy' part of my question)
>
> I think there is a lot of demand for a "git-hg" bridge, a way to seemlessly access a Mercurial repository as if it was a git repository. A converse to hg-git <http://hg-git.github.com/>
>
> As you discovered, there are several attempts to this. A recent overview over some of them can be found here:
>
>   https://github.com/dubiousjim/yagh/blob/master/README.md

And here's a new one: https://github.com/felipec/git/blob/fc-remote-hd/contrib/remote-hd/git-remote-hg

I took a look at several of them, and none satisfied me; too complicated, depends on another tool, hard to install, etc. This one is simple, and works fine. Only for local repositories, and only for fetching at the moment, but it's easy to use, and doesn't require much to install.

I think it has good chances of getting into git mainline, and hopefully other people will help adding the rest of the features. The code is not hard at all :)

Cheers.
-- 
Felipe Contreras
Previous: Cosmin StejereanNext: Felipe Contreras
Message 13 of 19 in “Can git pull from a mercurial repository?”
  1. Joachim SchmitzSep 18, 2012
  2. Andreas EricssonSep 18, 2012
  3. Joachim SchmitzSep 18, 2012
  4. Gelonida NSep 25, 2012
  5. Joachim SchmitzSep 25, 2012
  6. Martin LanghoffSep 25, 2012
  7. Max HornSep 25, 2012
  8. Joachim SchmitzSep 25, 2012
  9. Georgi ChorbadzhiyskiSep 26, 2012
  10. Max HornSep 26, 2012
  11. Georgi ChorbadzhiyskiSep 26, 2012
  12. Cosmin StejereanSep 26, 2012
  13. Felipe ContrerasOct 17, 2012
  14. Felipe ContrerasOct 17, 2012
  15. Georgi ChorbadzhiyskiSep 18, 2012
  16. Joachim SchmitzSep 18, 2012
  17. Andreas SchwabSep 18, 2012
  18. Joachim SchmitzSep 18, 2012
  19. Andreas SchwabSep 18, 2012

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.