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

Re: Importing Bzr revisions

From
TLTeemu Likonen <tlikonen@iki.fi>
Date
Mar 23, 2009, 14:07 UTC
Message-ID
<87zlfcz62g.fsf@iki.fi>
In-Reply-To
<03AC7EDA-2A9F-4626-A67B-CE9F2A88FC7D@gmail.com>

[I'll Cc to Bazaar list too because this subject is half-Git and half-Bazaar and we may need help from both sides.]

On 2009-03-23 09:27 (-0400), David Reitter wrote:
Show 7 quoted lines
> I'm just experimenting with "bzr fast-export", which converts to git,
> and it seems to take about 4 minutes for 1000 revisions on our
> (modern) server. That would be around 7 hours for my emacs repository;
> I can't do that daily.
>
> I wonder if there's a way for (bzr) fast-export / (git) fast-import to
> work incrementally, i.e. for selected or most recent revisions.

They can or should work incrementally, and actually I have succesfully done that. The idea is to use --import-marks and --export-marks options with "git fast-import" and --marks option with "bzr fast-export.

I noticed some problems with newer versions of "bzr fast-export", though (since it was converted to a proper Bzr command). It seems to corrupt the marks file when doing the first incremental export after the initial export. At least the revisions are not in right order in the marks file anymore. "git fast-import" can't continue to import from the same revision where it left last time and it seems to create alternative history -- or something.

Really I don't know if this is a bug in Bzr or in Git and haven't figured out how to file a useful bug report.

Previous: Shawn O. PearceNext: David Reitter
Message 6 of 11 in “Importing Bzr revisions”
  1. David ReitterMar 23, 2009
  2. Junio C HamanoMar 23, 2009
  3. David ReitterMar 23, 2009
  4. David ReitterMar 23, 2009
  5. Shawn O. PearceMar 23, 2009
  6. Teemu LikonenMar 23, 2009
  7. David ReitterMar 26, 2009
  8. Pieter de BieMar 23, 2009
  9. David ReitterMar 23, 2009
  10. Pieter de BieMar 23, 2009
  11. David ReitterMar 23, 2009

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.