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

fast-import doesn't recognise commits it generated?

From
RHRory Hunter <rory.hunter@datacash.com>
Date
Jun 10, 2010, 10:55 UTC
Message-ID
<A78DB34D00374344A0AB65B6523C05DC05969A63@marsden.win.datacash.com>
Hi,

I'm trying to convert a PRCS repository into git using a custom fast-import frontend. It's a very large repository, and I can't convert it fast enough to stop users from committing to it while I convert it (it takes 4+ days, PRCS is old and not that quick, and I've got over 7000 commits to migrate. I've been converting from a backup).

I've found that if I do an export up to a certain point, then attempt to resume the export using the marks file generated by fast-import, it complains saying (for example);

error: unable to find 185643da420354e861743f3056614f4dc78c0246 fatal: object not found: 185643da420354e861743f3056614f4dc78c0246

I tried this with version 1.5.6.5-3 (+lenny2~bpo40+1, on Debian Lenny), and the offending hash and mark were in the marks file, quite a way earlier than the point from which I attempted to resume the export.

I installed 1.7.1 from source and tried again and hit the same problem, although this time it seems to have trampled the marks file in the process - I had 47 entries instead of 10x that number before trying to resume.

The only other information in the crash report is, "active_branches = 0 cur, 5 max". Not much to go on.

I'm wondering if there are conditions where fast-import will somehow ignore a revision, or squash it into another revision, such that it accepts and processes the command stream that I've generated but doesn't generate a commit, despite it outputting a hash to the marks file?

Thanks and regards,
-- 
Rory Hunter
Message 1 of 1 in “fast-import doesn't recognise commits it generated?”
  1. Rory HunterJun 10, 2010

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.