{"thread":{"id":"974","subject":"quick patch for gitk-1.1","startedAt":"2005-06-19T12:01:57Z","lastAt":"2005-06-19T12:01:57Z","messageCount":1,"participants":["Paul Mackerras"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"5037","messageId":"17077.24245.159322.636067@cargo.ozlabs.ibm.com","threadId":"974","inReplyTo":null,"subject":"quick patch for gitk-1.1","fromName":"Paul Mackerras","fromEmail":"paulus@samba.org","sentAt":"2005-06-19T12:01:57Z","receivedAt":"2005-06-19T12:01:57Z","isPatch":false,"sender":{"key":"paulus@samba.org","avatar":"https://avatars.githubusercontent.com/u/1606439?v=4"},"body":"It turns out that Linus' linux-2.6 tree now has a commit in it with\none of the parents listed twice, which confuses gitk and causes it to\nstop with an error.  I have a new version of gitk almost ready to go,\nbut in the meantime here is a quick patch for gitk-1.1 to fix the\nproblem.\n\nThe confusing commit is 13e652800d1644dfedcd0d59ac95ef0beb7f3165.\n\nPaul.\n\n--- gitk~\t2005-06-01 18:14:51.000000000 +1000\n+++ gitk\t2005-06-19 21:55:02.000000000 +1000\n@@ -582,6 +582,7 @@\n \tset ofill white\n \tif {[info exists parents($id)]} {\n \t    foreach p $parents($id) {\n+\t\tif {[lsearch -exact $actualparents $p] >= 0} continue\n \t\tif {[info exists ncleft($p)]} {\n \t\t    incr ncleft($p) -1\n \t\t    if {![info exists commitinfo($p)]} {\n"}]}