gitk: Fix bug causing the "can't unset idinlist(...)" error
commit67a4f1a7f5c778ffa23d1e562feb4cc6d52c9414
authorPaul Mackerras <paulus@samba.org>
Sun, 12 Aug 2007 07:23:47 +0000 (12 17:23 +1000)
committerPaul Mackerras <paulus@samba.org>
Sun, 12 Aug 2007 07:23:47 +0000 (12 17:23 +1000)
tree2696edfe28c97b44c45a55f3857ae51e3895e7ee
parent3244729aac7515ccda651d40f41cef94517ac089
gitk: Fix bug causing the "can't unset idinlist(...)" error

Under some circumstances, having duplicate parents in a commit could
trigger a "can't unset idinlist" Tcl error.  This fixes the cause
(the logic in layoutrows could end up putting the same commit into
rowidlist twice) and also puts a catch around the unset to ignore
the error.

Thanks to Jeff King for coming up with a test script to generate a
repo that shows the problem.

Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk