Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Include file name in merge window title |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
6ef49cc3ffafe6f11766540dff4e753e |
User & Date: | peter.spjuth@gmail.com 2011-04-03 21:55:52.000 |
Context
2011-04-03
| ||
22:28 | Support files list with -review check-in: 145e7aacd9 user: peter.spjuth@gmail.com tags: trunk | |
21:55 | Include file name in merge window title check-in: 6ef49cc3ff user: peter.spjuth@gmail.com tags: trunk | |
2011-03-31
| ||
23:36 | Preparing for release 2.5 check-in: c60cbbf4aa user: peter.spjuth@gmail.com tags: trunk | |
Changes
Changes to src/eskil.tcl.
︙ | ︙ | |||
1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 | # Restore view foreach item {wLine1 wDiff1 wLine2 wDiff2} { set w $::widgets($top,$item) seeText $w $first.0 $last.0 } } # Main diff function. proc doDiff {top} { global Pref global doingLine1 doingLine2 if {$::diff($top,mode) eq "" && ($::diff($top,leftOK) == 0 || $::diff($top,rightOK) == 0)} { | > > > > > > > > > > > > > > > > | 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 | # Restore view foreach item {wLine1 wDiff1 wLine2 wDiff2} { set w $::widgets($top,$item) seeText $w $first.0 $last.0 } } # Make an appropriate tail for a window title, depending on mode and files. proc TitleTail {top} { set tail1 [file tail $::diff($top,rightLabel)] set tail2 [file tail $::diff($top,leftLabel)] if {$::diff($top,mode) ne "" || $tail1 eq $tail2} { if {$::diff($top,mode) eq "rev"} { set tail1 [file tail $::diff($top,RevFile)] } elseif {$::diff($top,mode) eq "conflict"} { set tail1 [file tail $::diff($top,conflictFile)] } return $tail1 } else { return "$tail2 vs $tail1" } } # Main diff function. proc doDiff {top} { global Pref global doingLine1 doingLine2 if {$::diff($top,mode) eq "" && ($::diff($top,leftOK) == 0 || $::diff($top,rightOK) == 0)} { |
︙ | ︙ | |||
1196 1197 1198 1199 1200 1201 1202 | $::widgets($top,wLine2) see 1.0 normalCursor $top return } else { prepareFiles $top } | < < < < < < < < | < < < | 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 | $::widgets($top,wLine2) see 1.0 normalCursor $top return } else { prepareFiles $top } wm title $top "Eskil: [TitleTail $top]" # Run diff and parse the result. set opts $Pref(ignore) if {$Pref(nocase)} {lappend opts -nocase} if {$Pref(noempty)} {lappend opts -noempty} if {[info exists ::diff($top,aligns)] && \ [llength $::diff($top,aligns)] > 0} { |
︙ | ︙ |
Changes to src/merge.tcl.
︙ | ︙ | |||
293 294 295 296 297 298 299 | set w $top.merge if {![winfo exists $w]} { toplevel $w } else { destroy {*}[winfo children $w] } | | | 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 | set w $top.merge if {![winfo exists $w]} { toplevel $w } else { destroy {*}[winfo children $w] } wm title $w "Merge result: [TitleTail $top]" menu $w.m $w configure -menu $w.m $w.m add cascade -label "File" -underline 0 -menu $w.m.mf menu $w.m.mf $w.m.mf add command -label "Save" -underline 0 -command "saveMerge $top" $w.m.mf add separator |
︙ | ︙ |