Fossil SCM
Bug fix in the previous check-in for the "--tk" option on the "3-way-merge" command.
Commit
d6fa91fdc843d732d3484da27055a5b959fddb6b117e079fff2ac2b69cc67209
Parent
f8932be5aa8964d…
2 files changed
+2
-9
+3
-2
+2
-9
| --- src/merge.tcl | ||
| +++ src/merge.tcl | ||
| @@ -109,11 +109,11 @@ | ||
| 109 | 109 | fconfigure $in -encoding utf-8 |
| 110 | 110 | set mergetxt [read $in] |
| 111 | 111 | close $in |
| 112 | 112 | } msg]} { |
| 113 | 113 | tk_messageBox -message "Unable to run command: \"$cmd\"" |
| 114 | - return | |
| 114 | + set mergetxt {} | |
| 115 | 115 | } |
| 116 | 116 | foreach c [cols] { |
| 117 | 117 | $c config -state normal |
| 118 | 118 | $c delete 1.0 end |
| 119 | 119 | } |
| @@ -265,16 +265,10 @@ | ||
| 265 | 265 | disableSync x |
| 266 | 266 | $col xview moveto [expr {$first*[xvis $col]/($last-$first)}] |
| 267 | 267 | foreach side {A B C D} { |
| 268 | 268 | set sb .sbx$side |
| 269 | 269 | set xview [.txt$side xview] |
| 270 | -# if {[lindex $xview 0] > 0 || [lindex $xview 1] < 1} { | |
| 271 | -# grid $sb | |
| 272 | -# eval $sb set $xview | |
| 273 | -# } else { | |
| 274 | -# grid remove $sb | |
| 275 | -# } | |
| 276 | 270 | } |
| 277 | 271 | enableSync x |
| 278 | 272 | } |
| 279 | 273 | |
| 280 | 274 | proc sync-y {first last} { |
| @@ -431,11 +425,10 @@ | ||
| 431 | 425 | ::ttk::scrollbar .sbxB -command {.txtB xview} -orient horizontal |
| 432 | 426 | ::ttk::scrollbar .sbxC -command {.txtC xview} -orient horizontal |
| 433 | 427 | ::ttk::scrollbar .sbxD -command {.txtD xview} -orient horizontal |
| 434 | 428 | frame .spacer |
| 435 | 429 | |
| 436 | -readMerge | |
| 437 | 430 | update idletasks |
| 438 | 431 | |
| 439 | 432 | proc searchOnOff {} { |
| 440 | 433 | if {[info exists ::search]} { |
| 441 | 434 | unset ::search |
| @@ -534,9 +527,9 @@ | ||
| 534 | 527 | grid .sby -row 2 -column 8 -sticky ns |
| 535 | 528 | grid .sbxA -row 3 -column 1 -sticky ew |
| 536 | 529 | grid .sbxB -row 3 -column 3 -sticky ew |
| 537 | 530 | grid .sbxC -row 3 -column 5 -sticky ew |
| 538 | 531 | grid .sbxD -row 3 -column 7 -sticky ew |
| 539 | - | |
| 532 | +readMerge | |
| 540 | 533 | |
| 541 | 534 | .spacer config -height [winfo height .sbxA] |
| 542 | 535 | wm deiconify . |
| 543 | 536 |
| --- src/merge.tcl | |
| +++ src/merge.tcl | |
| @@ -109,11 +109,11 @@ | |
| 109 | fconfigure $in -encoding utf-8 |
| 110 | set mergetxt [read $in] |
| 111 | close $in |
| 112 | } msg]} { |
| 113 | tk_messageBox -message "Unable to run command: \"$cmd\"" |
| 114 | return |
| 115 | } |
| 116 | foreach c [cols] { |
| 117 | $c config -state normal |
| 118 | $c delete 1.0 end |
| 119 | } |
| @@ -265,16 +265,10 @@ | |
| 265 | disableSync x |
| 266 | $col xview moveto [expr {$first*[xvis $col]/($last-$first)}] |
| 267 | foreach side {A B C D} { |
| 268 | set sb .sbx$side |
| 269 | set xview [.txt$side xview] |
| 270 | # if {[lindex $xview 0] > 0 || [lindex $xview 1] < 1} { |
| 271 | # grid $sb |
| 272 | # eval $sb set $xview |
| 273 | # } else { |
| 274 | # grid remove $sb |
| 275 | # } |
| 276 | } |
| 277 | enableSync x |
| 278 | } |
| 279 | |
| 280 | proc sync-y {first last} { |
| @@ -431,11 +425,10 @@ | |
| 431 | ::ttk::scrollbar .sbxB -command {.txtB xview} -orient horizontal |
| 432 | ::ttk::scrollbar .sbxC -command {.txtC xview} -orient horizontal |
| 433 | ::ttk::scrollbar .sbxD -command {.txtD xview} -orient horizontal |
| 434 | frame .spacer |
| 435 | |
| 436 | readMerge |
| 437 | update idletasks |
| 438 | |
| 439 | proc searchOnOff {} { |
| 440 | if {[info exists ::search]} { |
| 441 | unset ::search |
| @@ -534,9 +527,9 @@ | |
| 534 | grid .sby -row 2 -column 8 -sticky ns |
| 535 | grid .sbxA -row 3 -column 1 -sticky ew |
| 536 | grid .sbxB -row 3 -column 3 -sticky ew |
| 537 | grid .sbxC -row 3 -column 5 -sticky ew |
| 538 | grid .sbxD -row 3 -column 7 -sticky ew |
| 539 | |
| 540 | |
| 541 | .spacer config -height [winfo height .sbxA] |
| 542 | wm deiconify . |
| 543 |
| --- src/merge.tcl | |
| +++ src/merge.tcl | |
| @@ -109,11 +109,11 @@ | |
| 109 | fconfigure $in -encoding utf-8 |
| 110 | set mergetxt [read $in] |
| 111 | close $in |
| 112 | } msg]} { |
| 113 | tk_messageBox -message "Unable to run command: \"$cmd\"" |
| 114 | set mergetxt {} |
| 115 | } |
| 116 | foreach c [cols] { |
| 117 | $c config -state normal |
| 118 | $c delete 1.0 end |
| 119 | } |
| @@ -265,16 +265,10 @@ | |
| 265 | disableSync x |
| 266 | $col xview moveto [expr {$first*[xvis $col]/($last-$first)}] |
| 267 | foreach side {A B C D} { |
| 268 | set sb .sbx$side |
| 269 | set xview [.txt$side xview] |
| 270 | } |
| 271 | enableSync x |
| 272 | } |
| 273 | |
| 274 | proc sync-y {first last} { |
| @@ -431,11 +425,10 @@ | |
| 425 | ::ttk::scrollbar .sbxB -command {.txtB xview} -orient horizontal |
| 426 | ::ttk::scrollbar .sbxC -command {.txtC xview} -orient horizontal |
| 427 | ::ttk::scrollbar .sbxD -command {.txtD xview} -orient horizontal |
| 428 | frame .spacer |
| 429 | |
| 430 | update idletasks |
| 431 | |
| 432 | proc searchOnOff {} { |
| 433 | if {[info exists ::search]} { |
| 434 | unset ::search |
| @@ -534,9 +527,9 @@ | |
| 527 | grid .sby -row 2 -column 8 -sticky ns |
| 528 | grid .sbxA -row 3 -column 1 -sticky ew |
| 529 | grid .sbxB -row 3 -column 3 -sticky ew |
| 530 | grid .sbxC -row 3 -column 5 -sticky ew |
| 531 | grid .sbxD -row 3 -column 7 -sticky ew |
| 532 | readMerge |
| 533 | |
| 534 | .spacer config -height [winfo height .sbxA] |
| 535 | wm deiconify . |
| 536 |
+3
-2
| --- src/merge3.c | ||
| +++ src/merge3.c | ||
| @@ -811,12 +811,13 @@ | ||
| 811 | 811 | }else{ |
| 812 | 812 | nContext = atoi(zCnt); |
| 813 | 813 | if( nContext<0 ) nContext = 0xfffffff; |
| 814 | 814 | } |
| 815 | 815 | blob_zero(&script); |
| 816 | - blob_appendf(&script, "set fossilcmd {| \"%/\" %s -tcl -c %d", | |
| 817 | - g.nameOfExe, zSubCmd, nContext); | |
| 816 | + blob_appendf(&script, "set ncontext %d\n", nContext); | |
| 817 | + blob_appendf(&script, "set fossilcmd {| \"%/\" %s -tcl", | |
| 818 | + g.nameOfExe, zSubCmd); | |
| 818 | 819 | find_option("tcl",0,0); |
| 819 | 820 | find_option("debug",0,0); |
| 820 | 821 | zTclsh = find_option("tclsh",0,1); |
| 821 | 822 | if( zTclsh==0 ){ |
| 822 | 823 | zTclsh = db_get("tclsh",0); |
| 823 | 824 |
| --- src/merge3.c | |
| +++ src/merge3.c | |
| @@ -811,12 +811,13 @@ | |
| 811 | }else{ |
| 812 | nContext = atoi(zCnt); |
| 813 | if( nContext<0 ) nContext = 0xfffffff; |
| 814 | } |
| 815 | blob_zero(&script); |
| 816 | blob_appendf(&script, "set fossilcmd {| \"%/\" %s -tcl -c %d", |
| 817 | g.nameOfExe, zSubCmd, nContext); |
| 818 | find_option("tcl",0,0); |
| 819 | find_option("debug",0,0); |
| 820 | zTclsh = find_option("tclsh",0,1); |
| 821 | if( zTclsh==0 ){ |
| 822 | zTclsh = db_get("tclsh",0); |
| 823 |
| --- src/merge3.c | |
| +++ src/merge3.c | |
| @@ -811,12 +811,13 @@ | |
| 811 | }else{ |
| 812 | nContext = atoi(zCnt); |
| 813 | if( nContext<0 ) nContext = 0xfffffff; |
| 814 | } |
| 815 | blob_zero(&script); |
| 816 | blob_appendf(&script, "set ncontext %d\n", nContext); |
| 817 | blob_appendf(&script, "set fossilcmd {| \"%/\" %s -tcl", |
| 818 | g.nameOfExe, zSubCmd); |
| 819 | find_option("tcl",0,0); |
| 820 | find_option("debug",0,0); |
| 821 | zTclsh = find_option("tclsh",0,1); |
| 822 | if( zTclsh==0 ){ |
| 823 | zTclsh = db_get("tclsh",0); |
| 824 |