Fossil SCM
Bugfix in pass manager, handling of open-ended pass specifications.
Commit
9668b164556bbed0d1cac851e4a85a5572757bb6
Parent
54e9b0a1439023b…
1 file changed
+1
-1
| --- tools/cvs2fossil/lib/c2f_pass.tcl | ||
| +++ tools/cvs2fossil/lib/c2f_pass.tcl | ||
| @@ -80,11 +80,11 @@ | ||
| 80 | 80 | Ok? $end end ok |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | if {$ok} { |
| 84 | 84 | set mystart [Convert $start 0] |
| 85 | - set myend [Convert $end end] | |
| 85 | + set myend [Convert $end [expr {[llength $mypasses] - 1}]] | |
| 86 | 86 | if {$mystart > $myend} { |
| 87 | 87 | trouble fatal "Start pass is after end pass" |
| 88 | 88 | } |
| 89 | 89 | } |
| 90 | 90 | } elseif {[llength $pl] < 2} { |
| 91 | 91 |
| --- tools/cvs2fossil/lib/c2f_pass.tcl | |
| +++ tools/cvs2fossil/lib/c2f_pass.tcl | |
| @@ -80,11 +80,11 @@ | |
| 80 | Ok? $end end ok |
| 81 | } |
| 82 | |
| 83 | if {$ok} { |
| 84 | set mystart [Convert $start 0] |
| 85 | set myend [Convert $end end] |
| 86 | if {$mystart > $myend} { |
| 87 | trouble fatal "Start pass is after end pass" |
| 88 | } |
| 89 | } |
| 90 | } elseif {[llength $pl] < 2} { |
| 91 |
| --- tools/cvs2fossil/lib/c2f_pass.tcl | |
| +++ tools/cvs2fossil/lib/c2f_pass.tcl | |
| @@ -80,11 +80,11 @@ | |
| 80 | Ok? $end end ok |
| 81 | } |
| 82 | |
| 83 | if {$ok} { |
| 84 | set mystart [Convert $start 0] |
| 85 | set myend [Convert $end [expr {[llength $mypasses] - 1}]] |
| 86 | if {$mystart > $myend} { |
| 87 | trouble fatal "Start pass is after end pass" |
| 88 | } |
| 89 | } |
| 90 | } elseif {[llength $pl] < 2} { |
| 91 |