Differences From Artifact [b193a65e99]:
- File tools/cvs2fossil/lib/c2f_cyclebreaker.tcl — part of check-in [770a9b576a] at 2007-11-16 04:17:30 on branch trunk — Completed pass 7, breaking dependency cycles over symbol changesets. Moved the bulk of the cycle breaker code into its own class as it was common to the passes 6 and 7, and updated the two passes accordingly. Added code to load the changeset counter from the state to start properly. (user: aku size: 9194)
To Artifact [41093323e5]:
- File tools/cvs2fossil/lib/c2f_cyclebreaker.tcl — part of check-in [7b3928681e] at 2007-11-16 06:51:25 on branch trunk — Bugfix. Destroy graph object after use. (user: aku size: 9207) [more...]
| ︙ | |||
82 83 84 85 86 87 88 89 90 91 92 93 94 95 | 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | + + |
while {[WithoutPredecessor $dg n]} {
SaveAndRemove $dg $n
}
if {![llength [dg nodes]]} break
BreakCycle $dg [FindCycle $dg]
InitializeCandidates $dg
}
dg destroy
log write 3 cyclebreaker Done.
return
}
# # ## ### ##### ######## #############
## Internal methods
|
| ︙ |