Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Make sure the right type of plugin is called. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
983d72f1d19dee0bbad66aabd590375f |
User & Date: | peter 2015-02-23 22:42:16.538 |
Context
2015-02-23
| ||
22:53 | Text format cleanup check-in: ab75e68c78 user: peter tags: trunk | |
22:42 | Make sure the right type of plugin is called. check-in: 983d72f1d1 user: peter tags: trunk | |
22:04 | Webpage polish check-in: b36b1c03bd user: peter tags: trunk | |
Changes
Changes to src/dirdiff.tcl.
︙ | ︙ | |||
77 78 79 80 81 82 83 | file stat $file1 stat1 file stat $file2 stat2 } # If contents is not checked, same size is enough to be equal if {$stat1(size) == $stat2(size) && $::Pref(dir,comparelevel) == 0} { return 1 } | | > | 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | file stat $file1 stat1 file stat $file2 stat2 } # If contents is not checked, same size is enough to be equal if {$stat1(size) == $stat2(size) && $::Pref(dir,comparelevel) == 0} { return 1 } set anyPlugin [expr {$::eskil(.dirdiff,plugin) ne "" && \ [dict get $::eskil(.dirdiff,pluginpinfo) dir]}] set ignorekey $::Pref(dir,ignorekey) # Different size is enough when doing binary compare if {$stat1(size) != $stat2(size) && $::Pref(dir,comparelevel) == 2 \ && !$ignorekey && !$anyPlugin} { return 0 } # Same size and time is always considered equal |
︙ | ︙ |
Changes to src/eskil.syntax.
︙ | ︙ | |||
26 27 28 29 30 31 32 33 34 35 36 37 38 39 | ##nagelfar syntax ::tk::GetSelection x x ##nagelfar syntax ::tk::ScrollButton2Down x x x ##nagelfar syntax console x ##nagelfar syntax fileLabel x p* ##nagelfar option fileLabel -textvariable ##nagelfar option fileLabel\ -textvariable n ##nagelfar syntax registry x x x ##nagelfar package known registry ##nagelfar syntax vfs::filesystem s x* ##nagelfar subcmd vfs::filesystem mount posixerror ##nagelfar syntax vfs::filesystem\ mount x x | > | 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | ##nagelfar syntax ::tk::GetSelection x x ##nagelfar syntax ::tk::ScrollButton2Down x x x ##nagelfar syntax console x ##nagelfar syntax fileLabel x p* ##nagelfar option fileLabel -textvariable ##nagelfar option fileLabel\ -textvariable n ##nagelfar syntax createPluginInterp x x n ##nagelfar syntax registry x x x ##nagelfar package known registry ##nagelfar syntax vfs::filesystem s x* ##nagelfar subcmd vfs::filesystem mount posixerror ##nagelfar syntax vfs::filesystem\ mount x x |
︙ | ︙ |
Changes to src/eskil.tcl.
︙ | ︙ | |||
1288 1289 1290 1291 1292 1293 1294 | if {$::eskil($top,mode) eq "rev"} { prepareRev $top lappend ::eskil($top,cleanup) "rev" } elseif {$::eskil($top,mode) eq "conflict"} { prepareConflict $top lappend ::eskil($top,cleanup) "conflict" } | | > | 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 | if {$::eskil($top,mode) eq "rev"} { prepareRev $top lappend ::eskil($top,cleanup) "rev" } elseif {$::eskil($top,mode) eq "conflict"} { prepareConflict $top lappend ::eskil($top,cleanup) "conflict" } if {$::eskil($top,plugin) ne "" && \ [dict get $::eskil($top, pluginpinfo) file]} { preparePlugin $top set ::eskil($top,cleanup) "plugin $::eskil($top,cleanup)" } } # Clean up after a diff proc cleanupFiles {top} { |
︙ | ︙ | |||
4261 4262 4263 4264 4265 4266 4267 | exit } if {$plugindump ne ""} { printPlugin $plugindump exit } if {$plugin ne ""} { | | > | 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 | exit } if {$plugindump ne ""} { printPlugin $plugindump exit } if {$plugin ne ""} { set pinterp [createPluginInterp $plugin $plugininfo pinfo] if {$pinterp eq ""} { puts "Bad plugin: $plugin" printPlugins exit } set opts(plugin) $pinterp set opts(pluginname) $plugin set opts(plugininfo) $plugininfo set opts(pluginpinfo) $pinfo } # Store the command line given opts set ::eskil(defaultopts) [array get opts] # Do we start in clip diff mode? if {$doclip} { |
︙ | ︙ |
Changes to src/plugin.tcl.
︙ | ︙ | |||
53 54 55 56 57 58 59 | } } if {$src ne ""} break } return $src } | | > > > > > > > > > | 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | } } if {$src ne ""} break } return $src } proc createPluginInterp {plugin info pinfoName} { upvar 1 $pinfoName pinfo set src [LocatePlugin $plugin] if {$src eq ""} { return "" } # Create interpreter set pi [interp create -safe] # Load source $pi invokehidden -global source $src $pi eval [list set ::WhoAmI [file rootname [file tail $src]]] $pi eval [list set ::Info $info] interp share {} stdout $pi # Expose needed commands interp expose $pi fconfigure ;# ?? interp hide $pi close set pinfo {file 0 dir 0} if {[$pi eval info proc PreProcess] ne ""} { dict set pinfo file 1 } if {[$pi eval info proc FileCompare] ne ""} { dict set pinfo dir 1 } return $pi } proc printPlugin {plugin} { set src [LocatePlugin $plugin] if {$src eq ""} { |
︙ | ︙ | |||
257 258 259 260 261 262 263 | } proc EditPrefPluginsOk {top w} { destroy $w set ::eskil($top,pluginname) $::eskil($top,edit,pluginname) set ::eskil($top,plugininfo) $::eskil($top,edit,plugininfo) if {$::eskil($top,pluginname) ne ""} { | | > | 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 | } proc EditPrefPluginsOk {top w} { destroy $w set ::eskil($top,pluginname) $::eskil($top,edit,pluginname) set ::eskil($top,plugininfo) $::eskil($top,edit,plugininfo) if {$::eskil($top,pluginname) ne ""} { set pinterp [createPluginInterp $::eskil($top,pluginname) $::eskil($top,plugininfo) pinfo] } else { set pinterp "" } set ::eskil($top,plugin) $pinterp set ::eskil($top,pluginpinfo) $pinfo } # Put Tcl code in a text widget, with some syntax highlighting proc TextViewTcl {t data} { $t tag configure comment -foreground "#b22222" foreach line [split $data \n] { if {[regexp {^\s*#} $line]} { |
︙ | ︙ |