| | @@ -184,11 +184,11 @@ |
| 184 | 184 | # the state, and limited to successors within the changeset. |
| 185 | 185 | |
| 186 | 186 | array set dependencies {} |
| 187 | 187 | $mytypeobj internalsuccessors dependencies $myitems |
| 188 | 188 | if {![array size dependencies]} { |
| 189 | | - return 0 |
| 189 | + return {} |
| 190 | 190 | } ; # Nothing to break. |
| 191 | 191 | |
| 192 | 192 | log write 5 csets ...[$self str]....................................................... |
| 193 | 193 | vc::tools::mem::mark |
| 194 | 194 | |
| | @@ -290,10 +290,11 @@ |
| 290 | 290 | |
| 291 | 291 | # Create changesets for the fragments, reusing the current one |
| 292 | 292 | # for the first fragment. We sort them in order to allow |
| 293 | 293 | # checking for gaps and nice messages. |
| 294 | 294 | |
| 295 | + set newcsets {} |
| 295 | 296 | set fragments [lsort -index 0 -integer $fragments] |
| 296 | 297 | |
| 297 | 298 | #puts \t.[join [PRs $fragments] .\n\t.]. |
| 298 | 299 | |
| 299 | 300 | Border [lindex $fragments 0] firsts firste |
| | @@ -304,10 +305,11 @@ |
| 304 | 305 | foreach fragment [lrange $fragments 1 end] { |
| 305 | 306 | Border $fragment s e |
| 306 | 307 | integrity assert {$laste == ($s - 1)} {Bad fragment border <$laste | $s>, gap or overlap} |
| 307 | 308 | |
| 308 | 309 | set new [$type %AUTO% $myproject $mytype $mysrcid [lrange $myitems $s $e]] |
| 310 | + lappend newcsets $new |
| 309 | 311 | incr counter |
| 310 | 312 | |
| 311 | 313 | log write 4 csets "Breaking [$self str ] @ $laste, new [$new str], cutting $breaks($laste)" |
| 312 | 314 | |
| 313 | 315 | set laste $e |
| | @@ -329,11 +331,11 @@ |
| 329 | 331 | set key [list $mytype $iid] |
| 330 | 332 | set myitemmap($key) $self |
| 331 | 333 | log write 8 csets {MAP+ item <$key> $self = [$self str]} |
| 332 | 334 | } |
| 333 | 335 | |
| 334 | | - return 1 |
| 336 | + return $newcsets |
| 335 | 337 | } |
| 336 | 338 | |
| 337 | 339 | method persist {} { |
| 338 | 340 | set tid $mycstype($mytype) |
| 339 | 341 | set pid [$myproject id] |
| 340 | 342 | |