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

Re: [PATCH] Add hg-to-git conversion utility.

From
Stelian Pop <stelian@popies.net>
Date
Jan 12, 2007, 23:00 UTC
Message-ID
<45A81328.9030109@popies.net>
In-Reply-To
<20070112221525.GA20956@spearce.org>
Shawn O. Pearce a écrit :
Show 9 quoted lines
> Stelian Pop <stelian@popies.net> wrote:
>> hg-to-git.py  is able to convert a Mercurial repository into a git one,
>> and preserves the branches in the process (unlike tailor)
> 
> Cool!
> 
> You've already written the converter, but you may want to look at
> using git-fast-import as the backend interface to Git.  I think
> your code may come out shorter, be clearer, and will run faster.
[...]
> Post 1.5.0 I'm going to nudge Junio to get gfi added to the main
> git.git repository.  (Right now I don't want to distract him from
> the release.)

Rebasing hg-to-git.py on gfi will probably be a very good idea once gfi is in the tree.

But I wrote this since I had a need for it, and once my repositories converted to git I'm not sure I'll need it again :) So don't count too much on me to do this rebasing :)

But who knows, on a cold rainy day...
-- 
Stelian Pop <stelian@popies.net>
Previous: Shawn O. PearceNext: Junio C Hamano
Message 6 of 15 in “Mercurial to git converter.”
  1. Stelian PopJan 11, 2007
  2. Jakub NarebskiJan 12, 2007
  3. Stelian PopJan 12, 2007
  4. Add hg-to-git conversion utility.Stelian Pop, Jan 12, 2007
  5. Shawn O. PearceJan 12, 2007
  6. Stelian PopJan 12, 2007
  7. Junio C HamanoJan 12, 2007
  8. Stelian PopJan 12, 2007
  9. Nick AndrewJun 14, 2008
  10. Johannes SchindelinJun 14, 2008
  11. Jakub NarebskiJun 14, 2008
  12. Shawn O. PearceJun 16, 2008
  13. Nick AndrewJun 16, 2008
  14. Mike HommeyJun 16, 2008
  15. Johannes SchindelinJun 17, 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.