Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Rebuilt rev-detection to handle any dir depth. Detect .fos as fossil indicator. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
add4d884275a71c5c112bef52228f16a |
User & Date: | peter.spjuth@gmail.com 2011-10-27 14:56:31.000 |
Context
2011-10-27
| ||
19:12 | Updated links check-in: 4515eee95b user: peter tags: trunk | |
14:56 | Rebuilt rev-detection to handle any dir depth. Detect .fos as fossil indicator. check-in: add4d88427 user: peter.spjuth@gmail.com tags: trunk | |
2011-10-15
| ||
01:00 | Added Show in plugin dialog. check-in: 2828c7cb68 user: peter.spjuth@gmail.com tags: trunk | |
Changes
Changes to Changes.
1 2 3 4 5 6 7 | 2011-10-15 Added Show in plugin dialog. Added sort plugin. [FR 3735] 2011-10-15 Added procedure editor to debug menu. 2011-10-15 | > > > > | 1 2 3 4 5 6 7 8 9 10 11 | 2011-10-27 Rebuilt rev-detection to handle any dir depth. Detect .fos as fossil indicator. 2011-10-15 Added Show in plugin dialog. Added sort plugin. [FR 3735] 2011-10-15 Added procedure editor to debug menu. 2011-10-15 |
︙ | ︙ |
Changes to Makefile.
︙ | ︙ | |||
115 116 117 118 119 120 121 | @$(NAGELFAR) $(NAGELFARFLAGS) -header eskil_h.syntax $(SRCFILES) check: eskil_h.syntax @echo Checking... @for i in $(SRCFILES); do $(NAGELFAR) $(NAGELFARFLAGS) eskil_h.syntax $$i ; done test: | | | 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | @$(NAGELFAR) $(NAGELFARFLAGS) -header eskil_h.syntax $(SRCFILES) check: eskil_h.syntax @echo Checking... @for i in $(SRCFILES); do $(NAGELFAR) $(NAGELFARFLAGS) eskil_h.syntax $$i ; done test: @./tests/all.tcl $(TESTFLAGS) #---------------------------------------------------------------- # Coverage #---------------------------------------------------------------- # Source files for code coverage COVFILES = eskil.vfs/main.tcl eskil.vfs/src/rev.tcl eskil.vfs/src/eskil.tcl eskil.vfs/src/merge.tcl |
︙ | ︙ |
Changes to src/rev.tcl.
︙ | ︙ | |||
100 101 102 103 104 105 106 | return 1 } } return 0 } proc eskil::rev::HG::detect {file} { | | < < < < < < < < | < < < < < < < < | 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | return 1 } } return 0 } proc eskil::rev::HG::detect {file} { if {[SearchUpwardsFromFile $file .hg]} { if {[auto_execok hg] ne ""} { return 1 } } return 0 } proc eskil::rev::BZR::detect {file} { if {[SearchUpwardsFromFile $file .bzr]} { if {[auto_execok bzr] ne ""} { return 1 } } return 0 } |
︙ | ︙ | |||
162 163 164 165 166 167 168 | } cd $old } return 0 } proc eskil::rev::GIT::detect {file} { | | < < < < < < < < | < < < < < < < < < | 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | } cd $old } return 0 } proc eskil::rev::GIT::detect {file} { if {[SearchUpwardsFromFile $file .git]} { if {[auto_execok git] ne ""} { return 1 } } return 0 } proc eskil::rev::FOSSIL::detect {file} { if {[SearchUpwardsFromFile $file _FOSSIL_ .fos]} { if {[auto_execok fossil] ne ""} { return 1 } } return 0 } |
︙ | ︙ | |||
1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 | return [eskil::rev::${type}::getPatch $revs $files] } ############################################################################## # Utilities ############################################################################## # Get the last two elements in a file path proc GetLastTwoPath {path} { set last [file tail $path] set penultimate [file tail [file dirname $path]] if {$penultimate eq "."} { return $last | > > > > > > > > > > > > > > > > > > > > > > > | 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 | return [eskil::rev::${type}::getPatch $revs $files] } ############################################################################## # Utilities ############################################################################## # Search upwards the directory structure for a file proc SearchUpwardsFromFile {file args} { if {$file eq ""} { set dir [pwd] } elseif {[file isdirectory $file]} { set dir $file } else { set dir [file dirname $file] } while {[file readable $dir] && [file isdirectory $dir]} { foreach candidate $args { if {[file exists [file join $dir $candidate]]} { return 1 } } set parent [file dirname $dir] # Make sure to stop if we reach a dead end if {$parent eq $dir} break set dir $parent } return 0 } # Get the last two elements in a file path proc GetLastTwoPath {path} { set last [file tail $path] set penultimate [file tail [file dirname $path]] if {$penultimate eq "."} { return $last |
︙ | ︙ |
Changes to tests/all.tcl.
︙ | ︙ | |||
11 12 13 14 15 16 17 18 19 20 21 22 23 24 | lappend auto_path eskil.vfs/lib package require tcltest 2.2 namespace import tcltest::* tcltest::configure -verbose "body error" #testConstraint knownbug 1 #tcltest::configure -match print-* package require Tk wm withdraw . set ::eskil_testsuite 1 if {[file exists eskil.vfs/src/eskil.tcl_i]} { | > > > > | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | lappend auto_path eskil.vfs/lib package require tcltest 2.2 namespace import tcltest::* tcltest::configure -verbose "body error" #testConstraint knownbug 1 #tcltest::configure -match print-* if {$argc > 0} { eval tcltest::configure $argv } package require Tk wm withdraw . set ::eskil_testsuite 1 if {[file exists eskil.vfs/src/eskil.tcl_i]} { |
︙ | ︙ |