Package: gitk
Version: 1:1.5.2.4-1
Severity: normal
Tags: patch

I have problem opening last shown directory.
Please consider patch posted at:
 http://lists.zerezo.com/git/msg623221.html

Osamu

Here are the error messages

can't read "treeheight(tools/)": no such element in array
can't read "treeheight(tools/)": no such element in array
    (reading value of variable to increment)
    invoked from within
"incr treeheight($x) $n"
    (procedure "treeopendir" line 15)
    invoked from within
"treeopendir $w $e"
    (procedure "treeclick" line 20)
    invoked from within
"treeclick .bright.cfiles 13 154"
    (command bound to event)

--- Copy of original patch report pasted ---

Unroll the prefix stack when assigning treeheights when leaving
proc treeview.  Previously, when the ls-tree output ended in
multiple nested directories (for instance in a repository with a
single file "foo/bar/baz"), $treeheight("foo/bar/") was assigned
twice, and $treeheight("foo/") was never assigned.  This led to
an error when expanding the "foo" directory in the gitk treeview.

Signed-off-by: Brian Downing <[EMAIL PROTECTED]>
---
 gitk |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gitk b/gitk
index 2d6a6ef..d94c512 100755
--- a/gitk
+++ b/gitk
@@ -1216,6 +1216,9 @@ proc treeview {w l openlevs} {
        set treeheight($prefix) $ht
        incr ht [lindex $htstack end]
        set htstack [lreplace $htstack end end]
+       set prefixend [lindex $prefendstack end]
+       set prefendstack [lreplace $prefendstack end end]
+       set prefix [string range $prefix 0 $prefixend]
     }
     $w conf -state disabled
 }
-- 

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gitk depends on:
ii  git-core                     1:1.5.2.4-1 fast, scalable, distributed revisi
ii  tk8.4                        8.4.15-1    Tk toolkit for Tcl and X11, v8.4 -

Versions of packages gitk recommends:
ii  git-doc                      1:1.5.2.4-1 fast, scalable, distributed revisi

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to