Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Revert bad file. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
a50e753c1b235748934d9187358974b7 |
User & Date: | peter 2019-02-04 16:08:32.077 |
Context
2019-02-04
| ||
16:17 | Bug fix in file select check-in: 433fedb7d2 user: peter tags: trunk | |
16:08 | Revert bad file. check-in: a50e753c1b user: peter tags: trunk | |
15:56 | Document default print settings. check-in: c07ac8613c user: peter tags: trunk | |
Changes
Changes to src/dirdiff.tcl.
︙ | ︙ | |||
46 47 48 49 50 51 52 | } # Sort file names proc Fsort {l} { lsort -dictionary $l } | < < < < < < < < < < < < < < < < < < < < < < < < < | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | } # Sort file names proc Fsort {l} { lsort -dictionary $l } # Compare two files or dirs # Return true if equal proc CompareFiles {file1 file2} { if {[catch {file lstat $file1 stat1}]} { return 0 } if {[catch {file lstat $file2 stat2}]} { |
︙ | ︙ | |||
126 127 128 129 130 131 132 | } switch $::Pref(dir,comparelevel) { 2 - 1 { # Check contents internally set bufsz 65536 set eq 2 ;# 2 = equal this far, 1 = equal, 0 = not equal | < < < < | 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | } switch $::Pref(dir,comparelevel) { 2 - 1 { # Check contents internally set bufsz 65536 set eq 2 ;# 2 = equal this far, 1 = equal, 0 = not equal set ch1 [open $file1 r] set ch2 [open $file2 r] if {$::Pref(dir,comparelevel) == 2} { fconfigure $ch1 -translation binary fconfigure $ch2 -translation binary } # Allow a plugin to do its thing if {$anyPlugin} { #puts "PLUGIN!" |
︙ | ︙ | |||
183 184 185 186 187 188 189 | } else { if {![string equal $f1 $f2]} { set eq 0 } } } while {$eq == 2 && ![eof $ch1] && ![eof $ch2]} { | < < < < | 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | } else { if {![string equal $f1 $f2]} { set eq 0 } } } while {$eq == 2 && ![eof $ch1] && ![eof $ch2]} { set f1 [read $ch1 $bufsz] set f2 [read $ch2 $bufsz] if {$nocase} { if {![string equal -nocase $f1 $f2]} { set eq 0 } } else { if {![string equal $f1 $f2]} { set eq 0 } } } if {$eq == 2 && (![eof $ch1] || ![eof $ch2])} { set eq 0 } # Errors during close are not interesting catch {close $ch1} catch {close $ch2} } } return [expr {$eq != 0}] } # Returns the contents of a directory as a sorted list of full file paths. proc DirContents {dir} { |
︙ | ︙ | |||
467 468 469 470 471 472 473 | set DebugCh "" set DebugTime {} } # Uncomment to activate debug logging #set DebugCh [open ~/dirdiff.log a] #$self DlogTablelist $self Dlog RESTART | < | 434 435 436 437 438 439 440 441 442 443 444 445 446 447 | set DebugCh "" set DebugTime {} } # Uncomment to activate debug logging #set DebugCh [open ~/dirdiff.log a] #$self DlogTablelist $self Dlog RESTART set AfterId "" set IdleQueue {} set ScheduledRestart 0 array unset IdleQueueArr set protect {left 0 right 0} # Directory Diff only supports one plugin. |
︙ | ︙ | |||
938 939 940 941 942 943 944 | } else { set statusvar "$rightfull ($count)" } $self Dlog Reschedule set AfterId [after $AfterTime [mymethod UpdateIdle]] } else { | < | 904 905 906 907 908 909 910 911 912 913 914 915 916 917 | } else { set statusvar "$rightfull ($count)" } $self Dlog Reschedule set AfterId [after $AfterTime [mymethod UpdateIdle]] } else { $self Dlog DONE set statusvar "" set AfterId "" } } method SetNodeStatus {node status} { |
︙ | ︙ |