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

Re: importing mercurial patch

From
Ondrej Certik <ondrej@certik.cz>
Date
Nov 11, 2008, 12:18 UTC
Message-ID
<85b5c3130811110418l11be8084sf0f47a1095755747@mail.gmail.com>
In-Reply-To
<alpine.DEB.1.00.0811111258260.30769@pacific.mpi-cbg.de>

On Tue, Nov 11, 2008 at 1:00 PM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:

Show 20 quoted lines
> Hi,
>
> On Tue, 11 Nov 2008, Ondrej Certik wrote:
>
>> I'd like git to be able to import mercurial-exported patches.
>
> Have you seen
>
>        http://repo.or.cz/w/fast-export.git/
>
> ?
>
> I had many problems with it, so many that I started to write my own
> hg-fast-export together with Dirkjan Ochtman, a very nice Mercurial guy
> (actually, he started writing it, and I tried to fix it, but it still does
> not work due to merge mishandling).
>
> But then I saw that finally, they started work on it again.  It is
> somewhat sloppy, having a large part in Python and a large part in shell,
> which could have been avoided, but at least it works.

Yes, I use fast-export to convert from hg to git on the fly. But as I understood it, you need to have the whole repository converted. So if someone sends the patch in the mercurial format, I just want to apply it to git, instead of applying it to hg first and then converting. Well, you are right, that this is definitely one way of doing it.

But imho if git supported mercurial patches, life would be a lot easier.
Ondrej
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 4 of 6 in “importing mercurial patch”
  1. Ondrej CertikNov 11, 2008
  2. Ondrej CertikNov 11, 2008
  3. Johannes SchindelinNov 11, 2008
  4. Ondrej CertikNov 11, 2008
  5. Johannes SchindelinNov 11, 2008
  6. Ondrej CertikNov 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.