git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* gitk with arguments fails on OSX
@ 2006-11-29 15:04 Randal L. Schwartz
  2006-11-29 15:10 ` Johannes Schindelin
  0 siblings, 1 reply; 5+ messages in thread
From: Randal L. Schwartz @ 2006-11-29 15:04 UTC (permalink / raw)
  To: git


Using the native "wish", gitk fails on OSX 10.4 if given any arguments.
For example, the failure for "gitk --all" is:

    localhost.local:~/MIRROR/git-GIT % gitk --all
    Error in startup script: unknown option "-state"
        while executing
    ".bar.view entryconf 3 -state normal"
        invoked from within
    "if {$cmdline_files ne {} || $revtreeargs ne {}} {
        # create a view for the files/dirs specified on the command line
        set curview 1
        set selec..."
        (file "/opt/git/bin/gitk" line 6298)

What is -state ?  What version of tk does it require?

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gitk with arguments fails on OSX
  2006-11-29 15:04 gitk with arguments fails on OSX Randal L. Schwartz
@ 2006-11-29 15:10 ` Johannes Schindelin
  2006-11-29 15:28   ` Randal L. Schwartz
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Schindelin @ 2006-11-29 15:10 UTC (permalink / raw)
  To: Randal L. Schwartz; +Cc: git

Hi,

On Wed, 29 Nov 2006, Randal L. Schwartz wrote:

> 
> Using the native "wish", gitk fails on OSX 10.4 if given any arguments.
> For example, the failure for "gitk --all" is:
> 
>     localhost.local:~/MIRROR/git-GIT % gitk --all
>     Error in startup script: unknown option "-state"
>         while executing

Known problem:

http://thread.gmane.org/gmane.comp.version-control.git/31266/focus=31266

Hth,
Dscho

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gitk with arguments fails on OSX
  2006-11-29 15:10 ` Johannes Schindelin
@ 2006-11-29 15:28   ` Randal L. Schwartz
  2006-11-29 20:48     ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Randal L. Schwartz @ 2006-11-29 15:28 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: git

>>>>> "Johannes" == Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:

Johannes> Hi,
Johannes> On Wed, 29 Nov 2006, Randal L. Schwartz wrote:

>> 
>> Using the native "wish", gitk fails on OSX 10.4 if given any arguments.
>> For example, the failure for "gitk --all" is:
>> 
>> localhost.local:~/MIRROR/git-GIT % gitk --all
>> Error in startup script: unknown option "-state"
>> while executing

Johannes> Known problem:

Johannes> http://thread.gmane.org/gmane.comp.version-control.git/31266/focus=31266

The fix works for me.  How about mainlining it?

From: Randal L. Schwartz <merlyn@localhost.local>
Date: Wed, 29 Nov 2006 07:20:04 -0800
Subject: [PATCH] patch from mailing list

---
 gitk |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gitk b/gitk
index ab383b3..d9df0a3 100755
--- a/gitk
+++ b/gitk
@@ -1632,8 +1632,8 @@ proc showview {n} {
 
     set curview $n
     set selectedview $n
-    .bar.view entryconf 2 -state [expr {$n == 0? "disabled": "normal"}]
-    .bar.view entryconf 3 -state [expr {$n == 0? "disabled": "normal"}]
+    .bar.view entryconf "Edit*" -state [expr {$n == 0? "disabled": "normal"}]
+    .bar.view entryconf "Delete*" -state [expr {$n == 0? "disabled": "normal"}]
 
     if {![info exists viewdata($n)]} {
        set pending_select $selid
@@ -6305,8 +6305,8 @@ if {$cmdline_files ne {} || $revtreeargs ne {}} {
     set viewargs(1) $revtreeargs
     set viewperm(1) 0
     addviewmenu 1
-    .bar.view entryconf 2 -state normal
-    .bar.view entryconf 3 -state normal
+    .bar.view entryconf "Edit*" -state normal
+    .bar.view entryconf "Delete*" -state normal
 }
 
 if {[info exists permviews]} {
-- 
1.4.4.1.gf927



-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: gitk with arguments fails on OSX
  2006-11-29 15:28   ` Randal L. Schwartz
@ 2006-11-29 20:48     ` Junio C Hamano
  2006-11-29 21:16       ` Paul Mackerras
  0 siblings, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2006-11-29 20:48 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: git, Randal L. Schwartz

merlyn@stonehenge.com (Randal L. Schwartz) writes:

>>>>>> "Johannes" == Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
>
> Johannes> Hi,
> Johannes> On Wed, 29 Nov 2006, Randal L. Schwartz wrote:
>
>>> 
>>> Using the native "wish", gitk fails on OSX 10.4 if given any arguments.
>>> For example, the failure for "gitk --all" is:
>>> 
>>> localhost.local:~/MIRROR/git-GIT % gitk --all
>>> Error in startup script: unknown option "-state"
>>> while executing
>
> Johannes> Known problem:
>
> Johannes> http://thread.gmane.org/gmane.comp.version-control.git/31266/focus=31266
>
> The fix works for me.  How about mainlining it?

The changes look sane to me.

Paul?  I prefer to be fed gitk changes through you, if you don't
mind.

> From: Randal L. Schwartz <merlyn@localhost.local>
> Date: Wed, 29 Nov 2006 07:20:04 -0800
> Subject: [PATCH] patch from mailing list
>
> ---
>  gitk |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/gitk b/gitk
> index ab383b3..d9df0a3 100755
> --- a/gitk
> +++ b/gitk
> @@ -1632,8 +1632,8 @@ proc showview {n} {
>  
>      set curview $n
>      set selectedview $n
> -    .bar.view entryconf 2 -state [expr {$n == 0? "disabled": "normal"}]
> -    .bar.view entryconf 3 -state [expr {$n == 0? "disabled": "normal"}]
> +    .bar.view entryconf "Edit*" -state [expr {$n == 0? "disabled": "normal"}]
> +    .bar.view entryconf "Delete*" -state [expr {$n == 0? "disabled": "normal"}]
>  
>      if {![info exists viewdata($n)]} {
>         set pending_select $selid
> @@ -6305,8 +6305,8 @@ if {$cmdline_files ne {} || $revtreeargs ne {}} {
>      set viewargs(1) $revtreeargs
>      set viewperm(1) 0
>      addviewmenu 1
> -    .bar.view entryconf 2 -state normal
> -    .bar.view entryconf 3 -state normal
> +    .bar.view entryconf "Edit*" -state normal
> +    .bar.view entryconf "Delete*" -state normal
>  }
>  
>  if {[info exists permviews]} {
> -- 
> 1.4.4.1.gf927
>
>
>
> -- 
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
> <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
> See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gitk with arguments fails on OSX
  2006-11-29 20:48     ` Junio C Hamano
@ 2006-11-29 21:16       ` Paul Mackerras
  0 siblings, 0 replies; 5+ messages in thread
From: Paul Mackerras @ 2006-11-29 21:16 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, Randal L. Schwartz

Junio C Hamano writes:

> The changes look sane to me.
> 
> Paul?  I prefer to be fed gitk changes through you, if you don't
> mind.

I just pushed a somewhat more comprehensive fix to my gitk.git repo on
master.kernel.org.  (Actually I had checked it in some time ago
locally but forgot to do the push, sorry.)

Regards,

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-11-29 21:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-29 15:04 gitk with arguments fails on OSX Randal L. Schwartz
2006-11-29 15:10 ` Johannes Schindelin
2006-11-29 15:28   ` Randal L. Schwartz
2006-11-29 20:48     ` Junio C Hamano
2006-11-29 21:16       ` Paul Mackerras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).