# Can git pull from a mercurial repository?

19 messages from 2012-09-18 to 2012-10-17. Participants: Joachim Schmitz, Andreas Ericsson, Georgi Chorbadzhiyski, Andreas Schwab, Gelonida N, Martin Langhoff, Max Horn, Cosmin Stejerean, Felipe Contreras.
Thread: https://gitlist.dev/t/31585

## Joachim Schmitz, 2012-09-18 11:22

Subject: Can git pull from a mercurial repository?
Message-ID: <k39lir$gpm$1@ger.gmane.org>
URL: https://gitlist.dev/e/k39lir%24gpm%241%40ger.gmane.org

```
Is there an easy way to get git to clone/pull from a Mercurial repository?

Bye, Jojo

```

## Andreas Ericsson, 2012-09-18 11:46

Subject: Re: Can git pull from a mercurial repository?
Message-ID: <50585F10.3080307@op5.se>
URL: https://gitlist.dev/e/50585F10.3080307%40op5.se
In-Reply-To: <k39lir$gpm$1@ger.gmane.org>

```
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.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

```

## Georgi Chorbadzhiyski, 2012-09-18 12:06

Subject: Re: Can git pull from a mercurial repository?
Message-ID: <505863B2.9020805@unixsol.org>
URL: https://gitlist.dev/e/505863B2.9020805%40unixsol.org
In-Reply-To: <k39lir$gpm$1@ger.gmane.org>

```
Around 09/18/2012 02:22 PM, Joachim Schmitz scribbled:
> Is there an easy way to get git to clone/pull from a Mercurial repository?

I'm using http://offbytwo.com/git-hg/
It works beautifully.

-- 
Georgi Chorbadzhiyski
http://georgi.unixsol.org/

```

## Joachim Schmitz, 2012-09-18 12:10

Subject: RE: Can git pull from a mercurial repository?
Message-ID: <000801cd9596$885ad6a0$991083e0$@schmitz-digital.de>
URL: https://gitlist.dev/e/000801cd9596%24885ad6a0%24991083e0%24%40schmitz-digital.de
In-Reply-To: <505863B2.9020805@unixsol.org>

```
> From: Georgi Chorbadzhiyski [mailto:gf@unixsol.org]
> Sent: Tuesday, September 18, 2012 2:06 PM
> To: Joachim Schmitz
> Cc: git@vger.kernel.org
> Subject: Re: Can git pull from a mercurial repository?
> 
> Around 09/18/2012 02:22 PM, Joachim Schmitz scribbled:
> > Is there an easy way to get git to clone/pull from a Mercurial repository?
> 
> I'm using http://offbytwo.com/git-hg/
> It works beautifully.

Thanks, but that requires Mercurial to be available, installed and in PATH.
I want to use git exactly because I don't have Mercurial (yet?)

Bye, Jojo

```

## Andreas Schwab, 2012-09-18 12:33

Subject: Re: Can git pull from a mercurial repository?
Message-ID: <m2txuvik7g.fsf@igel.home>
URL: https://gitlist.dev/e/m2txuvik7g.fsf%40igel.home
In-Reply-To: <000801cd9596$885ad6a0$991083e0$@schmitz-digital.de>

```
"Joachim Schmitz" <jojo@schmitz-digital.de> writes:

> Thanks, but that requires Mercurial to be available, installed and in PATH.
> I want to use git exactly because I don't have Mercurial (yet?)

That doesn't make sense.  If one wants to access a mercurial repository
the best way to do that is to use the facilities provided by mercurial.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

```

## Joachim Schmitz, 2012-09-18 12:40

Subject: RE: Can git pull from a mercurial repository?
Message-ID: <000901cd959a$c0fcaf20$42f60d60$@schmitz-digital.de>
URL: https://gitlist.dev/e/000901cd959a%24c0fcaf20%2442f60d60%24%40schmitz-digital.de
In-Reply-To: <m2txuvik7g.fsf@igel.home>

```
> From: Andreas Schwab [mailto:schwab@linux-m68k.org]
> Sent: Tuesday, September 18, 2012 2:34 PM
> To: Joachim Schmitz
> Cc: 'Georgi Chorbadzhiyski'; git@vger.kernel.org
> Subject: Re: Can git pull from a mercurial repository?
> 
> "Joachim Schmitz" <jojo@schmitz-digital.de> writes:
> 
> > Thanks, but that requires Mercurial to be available, installed and in PATH.
> > I want to use git exactly because I don't have Mercurial (yet?)
> 
> That doesn't make sense.  If one wants to access a mercurial repository
> the best way to do that is to use the facilities provided by mercurial.

Not if you don't have Mercurial to begin with.
Git can access cvs and svn repos, right? And without having cvs/scv on the machine...

```

## Joachim Schmitz, 2012-09-18 12:40

Subject: RE: Can git pull from a mercurial repository?
Message-ID: <000a01cd959a$d8cd0730$8a671590$@schmitz-digital.de>
URL: https://gitlist.dev/e/000a01cd959a%24d8cd0730%248a671590%24%40schmitz-digital.de
In-Reply-To: <50585F10.3080307@op5.se>

```
> 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)

It seems https://github.com/rfk/git-remote-hg requires Python 2.5 (and I only have 2.4), also I have no idea how to get it installed
https://github.com/SRabbelier/git is 3 years old, apparently never made it into git, guess for a reason? 
Then I found https://github.com/fingolfin/git/commits/remote-hg, looks very confusing to me...

```

## Andreas Schwab, 2012-09-18 12:56

Subject: Re: Can git pull from a mercurial repository?
Message-ID: <m2mx0nij5x.fsf@igel.home>
URL: https://gitlist.dev/e/m2mx0nij5x.fsf%40igel.home
In-Reply-To: <000901cd959a$c0fcaf20$42f60d60$@schmitz-digital.de>

```
"Joachim Schmitz" <jojo@schmitz-digital.de> writes:

> Git can access cvs and svn repos, right?

It uses the facilities provided by cvs and svn, respectively.

> And without having cvs/scv on the machine...

Git does not reimplement either cvs nor svn.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

```

## Gelonida N, 2012-09-25 07:43

Subject: Re: Can git pull from a mercurial repository?
Message-ID: <k3rnak$qp$1@ger.gmane.org>
URL: https://gitlist.dev/e/k3rnak%24qp%241%40ger.gmane.org
In-Reply-To: <000a01cd959a$d8cd0730$8a671590$@schmitz-digital.de>

```
On 09/18/2012 02:40 PM, 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)
>
> It seems https://github.com/rfk/git-remote-hg requires Python 2.5 (and I only have 2.4), also I have no idea how to get it installed
> https://github.com/SRabbelier/git is 3 years old, apparently never made it into git, guess for a reason?
> Then I found https://github.com/fingolfin/git/commits/remote-hg, looks very confusing to me...

Install a newer python and hg
Are you really sure, that python 2.5 doesn't exist for your machine?
Most non embedded devices should  offer python 2.5 or newer
(for some distros you just have to add 'alternative' repositories)

```

## Joachim Schmitz, 2012-09-25 12:56

Subject: Re: Can git pull from a mercurial repository?
Message-ID: <k3sepn$f1e$1@ger.gmane.org>
URL: https://gitlist.dev/e/k3sepn%24f1e%241%40ger.gmane.org
In-Reply-To: <k3rnak$qp$1@ger.gmane.org>

```
Gelonida N wrote:
> On 09/18/2012 02:40 PM, 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) It seems
>> https://github.com/rfk/git-remote-hg requires Python 2.5
>> (and I only have 2.4), also I have no idea how to get it installed
>> https://github.com/SRabbelier/git is 3 years old, apparently never
>> made it into git, guess for a reason?  Then I found
>> https://github.com/fingolfin/git/commits/remote-hg,
>> looks very confusing to me...
>
> Install a newer python and hg
> Are you really sure, that python 2.5 doesn't exist for your machine?

Yes, I am sure. Python 2.4 had been ported more than 5 years ago by a former
workmate, otherwise we wouldn't even have that.

> Most non embedded devices should  offer python 2.5 or newer
> (for some distros you just have to add 'alternative' repositories)

For this platform (HP NonStop) basically nothing is available from any
repository on the web but ITUGLIB (http://ituglib.connect-community.org) and
that's the machine I'm working on/for ;-)

We're currently trying to port Python-2.7, but it ain't easy...

Bye, Jojo

```

## Max Horn, 2012-09-25 14:15

Subject: Re: Can git pull from a mercurial repository?
Message-ID: <37D17798-4BDC-433D-A9B4-49F4352754D9@quendi.de>
URL: https://gitlist.dev/e/37D17798-4BDC-433D-A9B4-49F4352754D9%40quendi.de
In-Reply-To: <000a01cd959a$d8cd0730$8a671590$@schmitz-digital.de>

```
Hi there,


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

Another remark:


> 
> It seems https://github.com/rfk/git-remote-hg requires Python 2.5 (and I only have 2.4), also I have no idea how to get it installed
> https://github.com/SRabbelier/git is 3 years old, apparently never made it into git, guess for a reason? 
> Then I found https://github.com/fingolfin/git/commits/remote-hg, looks very confusing to me...

This is mine, and I am sorry that it causes confusion -- but in fact, my goal it is kind of a continuation of the https://github.com/SRabbelier/git code. OR rather, it collects code others wrote to improve that codebase, and I just added a few fixes that made it work for me.

In particular, I tried to figure out the reasons for why it never made it into git, and in the process, created this Wiki page: <https://github.com/msysgit/msysgit/wiki/Guide-to-git-remote-hg>. Which attempts to document how to use this code, and what needs to be done. My hope was that perhaps more people would be interested in this, and in helping out with it, but so far no such luck. 

My goals were noble, but you are the second person who considers this work to be confusing, so if that is what the majority thinks, I am willing to remove that text again (or rather, hide it away in some private repository).


Cheers,
Max
```

## Martin Langhoff, 2012-09-25 14:39

Subject: Re: Can git pull from a mercurial repository?
Message-ID: <CACPiFC+ZV=_7dHyfr=25JYdHi5nmZct1-N8J67893xub6EPfyA@mail.gmail.com>
URL: https://gitlist.dev/e/CACPiFC%2BZV%3D_7dHyfr%3D25JYdHi5nmZct1-N8J67893xub6EPfyA%40mail.gmail.com
In-Reply-To: <k3sepn$f1e$1@ger.gmane.org>

```
On Tue, Sep 25, 2012 at 8:56 AM, Joachim Schmitz
<jojo@schmitz-digital.de> wrote:
> For this platform (HP NonStop) basically nothing is available from any
> repository on the web but ITUGLIB (http://ituglib.connect-community.org) and
> that's the machine I'm working on/for ;-)

Use a more modern machine as an interim point. You can do the import
to git there, then pull from that intermediate repo from pure git.

hth,



m
-- 
 martin.langhoff@gmail.com
 martin@laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff

```

## Joachim Schmitz, 2012-09-25 14:42

Subject: RE: Can git pull from a mercurial repository?
Message-ID: <002401cd9b2c$0168bcc0$043a3640$@schmitz-digital.de>
URL: https://gitlist.dev/e/002401cd9b2c%240168bcc0%24043a3640%24%40schmitz-digital.de
In-Reply-To: <37D17798-4BDC-433D-A9B4-49F4352754D9@quendi.de>

```
> From: Max Horn [mailto:postbox@quendi.de]
> Sent: Tuesday, September 25, 2012 4:15 PM
> To: Joachim Schmitz
> Cc: 'Andreas Ericsson'; git@vger.kernel.org
> Subject: Re: Can git pull from a mercurial repository?
> 
> Hi there,
> 
> 
> 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
> 
> Another remark:
> 
> 
> >
> > It seems https://github.com/rfk/git-remote-hg requires Python 2.5 (and I only have 2.4), also I have no idea how to get it
installed
> > https://github.com/SRabbelier/git is 3 years old, apparently never made it into git, guess for a reason?
> > Then I found https://github.com/fingolfin/git/commits/remote-hg, looks very confusing to me...
> 
> This is mine, and I am sorry that it causes confusion -- but in fact, my goal it is kind of a continuation of the
> https://github.com/SRabbelier/git code. OR rather, it collects code others wrote to improve that codebase, and I just added a few
fixes
> that made it work for me.
> 
> In particular, I tried to figure out the reasons for why it never made it into git, and in the process, created this Wiki page:
> <https://github.com/msysgit/msysgit/wiki/Guide-to-git-remote-hg>. Which attempts to document how to use this code, and what needs
to
> be done. My hope was that perhaps more people would be interested in this, and in helping out with it, but so far no such luck.

Ah, with that pages it gets much clearer! Only how should anyone know that https://github.com/fingolfin/git/commits/remote-hg is
related in any form or shape with https://github.com/msysgit/msysgit/wiki/Guide-to-git-remote-hg?
I'm afraid it still won't help me much though, as I guess it too requites Python 2.5 or later, as it uses the Mercuroal Python API
(and that actually may be the reason why it never made it into git? I believe to have read somewhere that git tries to restrict
itself to Python 2.4)

> My goals were noble, but you are the second person who considers this work to be confusing, so if that is what the majority
thinks, I am
> willing to remove that text again (or rather, hide it away in some private repository).

No, please don't. Rather make that clear on https://github.com/fingolfin/git/commits/remote-hg ...

Bye, Jojo

```

## Georgi Chorbadzhiyski, 2012-09-26 07:38

Subject: Re: Can git pull from a mercurial repository?
Message-ID: <5062B0F6.1040906@unixsol.org>
URL: https://gitlist.dev/e/5062B0F6.1040906%40unixsol.org
In-Reply-To: <37D17798-4BDC-433D-A9B4-49F4352754D9@quendi.de>

```
Around 09/25/2012 05:15 PM, Max Horn scribbled:
> 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/>

I've already mentioned this, but such a tool already exists and it
is working very well (IMHO): http://offbytwo.com/git-hg/

-- 
Georgi Chorbadzhiyski
http://georgi.unixsol.org/

```

## Max Horn, 2012-09-26 08:46

Subject: Re: Can git pull from a mercurial repository?
Message-ID: <7F5A6E53-4F7C-462F-8B04-09934BAB88DB@quendi.de>
URL: https://gitlist.dev/e/7F5A6E53-4F7C-462F-8B04-09934BAB88DB%40quendi.de
In-Reply-To: <5062B0F6.1040906@unixsol.org>

```

On 26.09.2012, at 09:38, Georgi Chorbadzhiyski wrote:

> Around 09/25/2012 05:15 PM, Max Horn scribbled:
>> 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/>
> 
> I've already mentioned this, but such a tool already exists and it
> is working very well (IMHO): http://offbytwo.com/git-hg/

I guess this is a matter of perspective. It doesn't work at all for me because it does not really support pushing. (It does have a "push" command, but at least last time I looked, it was utterly broken; see also <https://github.com/dubiousjim/yagh/blob/master/Backends.md> for a discussion (not written by me!). I'd be happy to learn that has changed, though I just looked, and it still uses "hg convert", so I don't see how it possibly could work...

Cheers,
Max
```

## Georgi Chorbadzhiyski, 2012-09-26 09:46

Subject: Re: Can git pull from a mercurial repository?
Message-ID: <5062CF09.2090703@unixsol.org>
URL: https://gitlist.dev/e/5062CF09.2090703%40unixsol.org
In-Reply-To: <7F5A6E53-4F7C-462F-8B04-09934BAB88DB@quendi.de>

```
Around 09/26/2012 11:46 AM, Max Horn scribbled:
> On 26.09.2012, at 09:38, Georgi Chorbadzhiyski wrote:
>> Around 09/25/2012 05:15 PM, Max Horn scribbled:
>>> 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/>
>>
>> I've already mentioned this, but such a tool already exists and it
>> is working very well (IMHO): http://offbytwo.com/git-hg/
> 
> I guess this is a matter of perspective. It doesn't work at all for me because it does not really support pushing. (It does have a "push" command, but at least last time I looked, it was utterly broken; see also <https://github.com/dubiousjim/yagh/blob/master/Backends.md> for a discussion (not written by me!). I'd be happy to learn that has changed, though I just looked, and it still uses "hg convert", so I don't see how it possibly could work...

I have not tested push (I'm using git-hg to sync hg repo and develop
using git, no pushing back to hg, just sending patches).

According to git-hg README "Push supported added as well although it
is still experimental". You should report the "push" bugs to the
author(s) they may be able to fix them.

-- 
Georgi Chorbadzhiyski
http://georgi.unixsol.org/

```

## Cosmin Stejerean, 2012-09-26 20:21

Subject: Re: Can git pull from a mercurial repository?
Message-ID: <CAF+fDw6eUdW_pmLsMzXgfhm46S8ey07kdo=vxJ=jP=SWjzR5RQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAF%2BfDw6eUdW_pmLsMzXgfhm46S8ey07kdo%3DvxJ%3DjP%3DSWjzR5RQ%40mail.gmail.com
In-Reply-To: <5062CF09.2090703@unixsol.org>

```
I definitely wrote git-hg for the purpose of checking out a mercurial
repo so I can develop locally against it with git and then submit
patches. Getting push support was never really a priority for me.
Someone did eventually contribute some mechanism for pushing things
back in a pull request, so I merged it in. I occasionally get pull
requests for minor things around push, so it seems like at least a few
people are using it.

The way to get proper push support would be to use the hg-git
extension. The git-hg-again project uses that, and if I had some time
I'd love to move git-hg over to that approach as well. Patches
welcome. Alternatively, you can always https://www.gittip.com/cosmin/
:)


- Cosmin

On Wed, Sep 26, 2012 at 4:46 AM, Georgi Chorbadzhiyski <gf@unixsol.org> wrote:
> Around 09/26/2012 11:46 AM, Max Horn scribbled:
>> On 26.09.2012, at 09:38, Georgi Chorbadzhiyski wrote:
>>> Around 09/25/2012 05:15 PM, Max Horn scribbled:
>>>> 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/>
>>>
>>> I've already mentioned this, but such a tool already exists and it
>>> is working very well (IMHO): http://offbytwo.com/git-hg/
>>
>> I guess this is a matter of perspective. It doesn't work at all for me because it does not really support pushing. (It does have a "push" command, but at least last time I looked, it was utterly broken; see also <https://github.com/dubiousjim/yagh/blob/master/Backends.md> for a discussion (not written by me!). I'd be happy to learn that has changed, though I just looked, and it still uses "hg convert", so I don't see how it possibly could work...
>
> I have not tested push (I'm using git-hg to sync hg repo and develop
> using git, no pushing back to hg, just sending patches).
>
> According to git-hg README "Push supported added as well although it
> is still experimental". You should report the "push" bugs to the
> author(s) they may be able to fix them.
>
> --
> Georgi Chorbadzhiyski
> http://georgi.unixsol.org/

```

## Felipe Contreras, 2012-10-17 12:44

Subject: Re: Can git pull from a mercurial repository?
Message-ID: <CAMP44s2DtMfeDQqgQfBamC3ZpbssnRrzveqP5nQ6Sehaw4+oVQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAMP44s2DtMfeDQqgQfBamC3ZpbssnRrzveqP5nQ6Sehaw4%2BoVQ%40mail.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:
> 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

```

## Felipe Contreras, 2012-10-17 13:29

Subject: Re: Can git pull from a mercurial repository?
Message-ID: <CAMP44s1F63K3k_Z-nyFx9-q7YYiOfFjadmaJGOYa4sLsGbmP8w@mail.gmail.com>
URL: https://gitlist.dev/e/CAMP44s1F63K3k_Z-nyFx9-q7YYiOfFjadmaJGOYa4sLsGbmP8w%40mail.gmail.com
In-Reply-To: <CAMP44s2DtMfeDQqgQfBamC3ZpbssnRrzveqP5nQ6Sehaw4+oVQ@mail.gmail.com>

```
On Wed, Oct 17, 2012 at 2:44 PM, Felipe Contreras
<felipe.contreras@gmail.com> wrote:
> On Tue, Sep 25, 2012 at 4:15 PM, Max Horn <postbox@quendi.de> wrote:

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

Er:
https://github.com/felipec/git/blob/fc-remote-hg/contrib/remote-hg/git-remote-hg

-- 
Felipe Contreras

```
