@@ -544,9 +544,9 @@ proc start_rev_list {view} {
544
544
if {$showlocalchanges && $viewmainheadid($view) ne {}} {
545
545
interestedin $viewmainheadid($view) dodiffindex
546
546
}
547
- fconfigure $fd -blocking 0 -translation lf -eofchar {}
547
+ chan configure $fd -blocking 0 -translation lf -eofchar {}
548
548
if {$tclencoding != {}} {
549
- fconfigure $fd -encoding $tclencoding
549
+ chan configure $fd -encoding $tclencoding
550
550
}
551
551
filerun $fd [ list getcommitlines $fd $i $view 0]
552
552
nowbusy $view [ mc " Reading" ]
@@ -694,9 +694,9 @@ proc updatecommits {} {
694
694
}
695
695
set i [ reg_instance $fd ]
696
696
lappend viewinstances($view ) $i
697
- fconfigure $fd -blocking 0 -translation lf -eofchar {}
697
+ chan configure $fd -blocking 0 -translation lf -eofchar {}
698
698
if {$tclencoding != {}} {
699
- fconfigure $fd -encoding $tclencoding
699
+ chan configure $fd -encoding $tclencoding
700
700
}
701
701
filerun $fd [ list getcommitlines $fd $i $view 1]
702
702
incr viewactive($view )
@@ -1560,7 +1560,7 @@ proc getcommitlines {fd inst view updating} {
1560
1560
set viewinstances($view ) [ lreplace $viewinstances($view) $i $i ]
1561
1561
}
1562
1562
# set it blocking so we wait for the process to terminate
1563
- fconfigure $fd -blocking 1
1563
+ chan configure $fd -blocking 1
1564
1564
if {[ catch {close $fd } err] } {
1565
1565
set fv {}
1566
1566
if {$view != $curview } {
@@ -1774,9 +1774,9 @@ proc do_readcommit {id} {
1774
1774
# Invoke git-log to handle automatic encoding conversion
1775
1775
set fd [ open [concat | git log --no-color --pretty=raw -1 $id ] r]
1776
1776
# Read the results using i18n.logoutputencoding
1777
- fconfigure $fd -translation lf -eofchar {}
1777
+ chan configure $fd -translation lf -eofchar {}
1778
1778
if {$tclencoding != {}} {
1779
- fconfigure $fd -encoding $tclencoding
1779
+ chan configure $fd -encoding $tclencoding
1780
1780
}
1781
1781
set contents [ read $fd ]
1782
1782
close $fd
@@ -1910,7 +1910,7 @@ proc readrefs {} {
1910
1910
}
1911
1911
set refd [ open [list | git show-ref -d] r]
1912
1912
if {$tclencoding != {}} {
1913
- fconfigure $refd -encoding $tclencoding
1913
+ chan configure $refd -encoding $tclencoding
1914
1914
}
1915
1915
while {[ gets $refd line] >= 0} {
1916
1916
if {[ string index $line 40] ne " " } continue
@@ -3814,7 +3814,7 @@ proc external_diff {} {
3814
3814
file delete -force $diffdir
3815
3815
error_popup " $extdifftool : [mc " command failed:" ] $err "
3816
3816
} else {
3817
- fconfigure $fl -blocking 0
3817
+ chan configure $fl -blocking 0
3818
3818
filerun $fl [ list delete_at_eof $fl $diffdir ]
3819
3819
}
3820
3820
}
@@ -4043,7 +4043,7 @@ proc show_line_source {} {
4043
4043
return
4044
4044
}
4045
4045
nowbusy blaming [ mc " Searching" ]
4046
- fconfigure $f -blocking 0
4046
+ chan configure $f -blocking 0
4047
4047
set i [ reg_instance $f ]
4048
4048
set blamestuff($i ) {}
4049
4049
set blameinst $i
@@ -4072,7 +4072,7 @@ proc read_line_source {fd inst} {
4072
4072
unset commfd($inst )
4073
4073
unset blameinst
4074
4074
notbusy blaming
4075
- fconfigure $fd -blocking 1
4075
+ chan configure $fd -blocking 1
4076
4076
if {[ catch {close $fd } err] } {
4077
4077
error_popup [ mc " Error running git blame: %s" $err ]
4078
4078
return 0
@@ -4964,7 +4964,7 @@ proc do_file_hl {serial} {
4964
4964
}
4965
4965
set cmd [ concat | git diff-tree -r -s --stdin $gdtargs ]
4966
4966
set filehighlight [ open $cmd r+]
4967
- fconfigure $filehighlight -blocking 0
4967
+ chan configure $filehighlight -blocking 0
4968
4968
filerun $filehighlight readfhighlight
4969
4969
set fhl_list {}
4970
4970
drawvisible
@@ -5396,7 +5396,7 @@ proc get_viewmainhead {view} {
5396
5396
-- $vfilelimit($view) ] r]
5397
5397
set j [ reg_instance $rfd ]
5398
5398
lappend viewinstances($view ) $j
5399
- fconfigure $rfd -blocking 0
5399
+ chan configure $rfd -blocking 0
5400
5400
filerun $rfd [ list getviewhead $rfd $j $view ]
5401
5401
set viewmainheadid($curview ) {}
5402
5402
}
@@ -5466,7 +5466,7 @@ proc dodiffindex {} {
5466
5466
set cmd [ concat $cmd -- $vfilelimit($curview) ]
5467
5467
}
5468
5468
set fd [ open $cmd r]
5469
- fconfigure $fd -blocking 0
5469
+ chan configure $fd -blocking 0
5470
5470
set i [ reg_instance $fd ]
5471
5471
filerun $fd [ list readdiffindex $fd $lserial $i ]
5472
5472
}
@@ -5495,7 +5495,7 @@ proc readdiffindex {fd serial inst} {
5495
5495
set cmd [ concat $cmd -- $vfilelimit($curview) ]
5496
5496
}
5497
5497
set fd [ open $cmd r]
5498
- fconfigure $fd -blocking 0
5498
+ chan configure $fd -blocking 0
5499
5499
set i [ reg_instance $fd ]
5500
5500
filerun $fd [ list readdifffiles $fd $serial $i ]
5501
5501
@@ -7802,7 +7802,7 @@ proc gettree {id} {
7802
7802
set treepending $id
7803
7803
set treefilelist($id ) {}
7804
7804
set treeidlist($id ) {}
7805
- fconfigure $gtf -blocking 0 -translation binary
7805
+ chan configure $gtf -blocking 0 -translation binary
7806
7806
filerun $gtf [ list gettreeline $gtf $id ]
7807
7807
}
7808
7808
} else {
@@ -7871,7 +7871,7 @@ proc showfile {f} {
7871
7871
return
7872
7872
}
7873
7873
}
7874
- fconfigure $bf -blocking 0 -encoding [ get_path_encoding $f ]
7874
+ chan configure $bf -blocking 0 -encoding [ get_path_encoding $f ]
7875
7875
filerun $bf [ list getblobline $bf $diffids ]
7876
7876
$ctext config -state normal
7877
7877
clear_ctext $commentend
@@ -8065,7 +8065,7 @@ proc gettreediffs {ids} {
8065
8065
8066
8066
set treepending $ids
8067
8067
set treediff {}
8068
- fconfigure $gdtf -blocking 0 -translation binary
8068
+ chan configure $gdtf -blocking 0 -translation binary
8069
8069
filerun $gdtf [ list gettreediffline $gdtf $ids ]
8070
8070
}
8071
8071
@@ -8185,7 +8185,7 @@ proc getblobdiffs {ids} {
8185
8185
error_popup [ mc " Error getting diffs: %s" $err ]
8186
8186
return
8187
8187
}
8188
- fconfigure $bdf -blocking 0 -translation binary -eofchar {}
8188
+ chan configure $bdf -blocking 0 -translation binary -eofchar {}
8189
8189
set blobdifffd($ids ) $bdf
8190
8190
initblobdiffvars
8191
8191
filerun $bdf [ list getblobdiffline $bdf $diffids ]
@@ -10379,7 +10379,7 @@ proc getallcommits {} {
10379
10379
set cmd [ concat $cmd --stdin " <<[ join $ids " \\ n" ] " ]
10380
10380
}
10381
10381
set fd [ open $cmd r]
10382
- fconfigure $fd -blocking 0
10382
+ chan configure $fd -blocking 0
10383
10383
incr allcommits
10384
10384
nowbusy allcommits
10385
10385
filerun $fd [ list getallclines $fd ]
@@ -10487,7 +10487,7 @@ proc getallclines {fd} {
10487
10487
}
10488
10488
set cacheok 1
10489
10489
if {[ catch {
10490
- fconfigure $fd -blocking 1
10490
+ chan configure $fd -blocking 1
10491
10491
close $fd
10492
10492
} err] } {
10493
10493
# got an error reading the list of commits
0 commit comments