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

Re: Bug in gitk: can't unset "idinlist(...) ..."

From
Jeff King <peff@peff.net>
Date
Aug 10, 2007, 17:32 UTC
Message-ID
<20070810173242.GA23628@coredump.intra.peff.net>
In-Reply-To
<20070810154108.GA779@ruiner>
On Fri, Aug 10, 2007 at 11:41:08AM -0400, Brian Hetro wrote:
Show 6 quoted lines
> I have a problem with gitk not being able to show one of my
> repositories (git version 1.5.3.rc4.41.g7efe).  I get this error while
> gitk starts:
> 
> can't unset "idinlist(f1d795add789ec43d3ccf1d35f3c39fb464f6e72)": no
> such element in array
Junio,

I did a little digging on this bug, since it was so similar to the duplicate parent errors we were getting a few weeks ago. As it turns out, Brian's repository, generated by hg2git, actually has commit objects with duplicate parents in them. Older versions of git used to remove duplicate parents for all commits, but due to your commits 11d65967 and 1ed84157, we now do it just for history simplification. Which is why he was able to bisect it to 1ed84157, even though it is perhaps not a git bug.

So maybe the right attitude is "hg2git should not be generating such broken commits" (or "gitk should not barf on such broken commits" :) ), but I thought I would mention it as an additional data point for those changes. Should git handle duplicate parents of this fashion more robustly? Or should we just assume that they should never have been generated in the first place?

-Peff
Previous: Jeff KingNext: Linus Torvalds
Message 4 of 10 in “Bug in gitk: can't unset "idinlist(...) ..."”
  1. Brian HetroAug 10, 2007
  2. Jeff KingAug 10, 2007
  3. Jeff KingAug 10, 2007
  4. Jeff KingAug 10, 2007
  5. Linus TorvaldsAug 10, 2007
  6. Paul MackerrasAug 11, 2007
  7. Jeff KingAug 11, 2007
  8. Paul MackerrasAug 12, 2007
  9. Junio C HamanoAug 12, 2007
  10. Paul MackerrasAug 13, 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.