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

Re: mercurial to git

From
RRRocco Rutte <pdmef@gmx.net>
Date
Mar 8, 2007, 08:56 UTC
Message-ID
<20070308085613.GA2881@peter.daprodeges.fqdn.th-h.de>
In-Reply-To
<20070307155929.GD27596@spearce.org>
Hi,
* Shawn O. Pearce [07-03-07 10:59:29 -0500] wrote:
Show 7 quoted lines
>I thought that hg stored file revisions such that each source file
>(e.g. foo.c) had its own revision file (e.g. foo.revdata) and that
>every revision of foo.c was stored in that one file, ordered from
>oldest to newest?  If that is the case why not strip all of those
>into fast-import up front, doing one source file at a time as a
>huge series of blobs and mark them, then do the commit/trees later
>on using only the marks?
>Or am I just missing something about hg?

I don't want to use anything except the hg mecurial API so that in theory the importer could work even for remote hg repositories.

But the "blob feed" approach doesn't seem perfectly right to me especially for incremental imports. There would have to be state files and internal tables telling what revisions of what files there are with what content. With thousands of files I think this gets quite messy to find even the minimum set to start of with for an incremental import. Also, you can already specify up to which revision to import so it would get even more complicated.

   bye, Rocco
-- 
:wq!
Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 8 of 19 in “mercurial to git”
  1. Rocco RutteMar 6, 2007
  2. Theodore TsoMar 6, 2007
  3. Rocco RutteMar 6, 2007
  4. Josef SipekMar 6, 2007
  5. Theodore TsoMar 7, 2007
  6. Rocco RutteMar 8, 2007
  7. Shawn O. PearceMar 7, 2007
  8. Rocco RutteMar 8, 2007
  9. Shawn O. PearceMar 7, 2007
  10. Rocco RutteMar 8, 2007
  11. Theodore TsoMar 15, 2007
  12. Rocco RutteMar 15, 2007
  13. Theodore TsoMar 15, 2007
  14. Rocco RutteMar 15, 2007
  15. Linus TorvaldsMar 15, 2007
  16. Theodore TsoMar 15, 2007
  17. Rocco RutteMar 15, 2007
  18. Simon 'corecode' SchubertMar 17, 2007
  19. Len BrownMar 16, 2007

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.