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

Re: Can git pull from a mercurial repository?

From
CSCosmin Stejerean <cosmin@offbytwo.com>
Date
Sep 26, 2012, 20:21 UTC
Message-ID
<CAF+fDw6eUdW_pmLsMzXgfhm46S8ey07kdo=vxJ=jP=SWjzR5RQ@mail.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:
Show 20 quoted lines
> 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/
Previous: Georgi ChorbadzhiyskiNext: Felipe Contreras
Message 12 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.