Fossil SCM

Modified loop check in cycle breaker to abort immediately on first looped changeset.

aku 2007-12-02 06:18 UTC trunk
Commit 487bb1c619f020acaa77ad1a58f31b8e564fc3fe
--- tools/cvs2fossil/lib/c2f_cyclebreaker.tcl
+++ tools/cvs2fossil/lib/c2f_cyclebreaker.tcl
@@ -207,11 +207,11 @@
207207
# chosen set. These are ignored
208208
if {![$dg node exists $succ]} continue
209209
$dg arc insert $cset $succ
210210
if {$succ eq $cset} {
211211
$cset loopcheck
212
- trouble fatal "[$cset str] depends on itself"
212
+ trouble internal "[$cset str] depends on itself"
213213
}
214214
}
215215
incr n
216216
}
217217
@@ -431,11 +431,11 @@
431431
# the chosen set. These are ignored
432432
if {![$dg node exists $succ]} continue
433433
$dg arc insert $cset $succ
434434
if {$succ eq $cset} {
435435
$cset loopcheck
436
- trouble fatal "[$cset str] depends on itself"
436
+ trouble internal "[$cset str] depends on itself"
437437
}
438438
}
439439
}
440440
foreach cset $pre {
441441
foreach succ [$cset successors] {
442442
--- tools/cvs2fossil/lib/c2f_cyclebreaker.tcl
+++ tools/cvs2fossil/lib/c2f_cyclebreaker.tcl
@@ -207,11 +207,11 @@
207 # chosen set. These are ignored
208 if {![$dg node exists $succ]} continue
209 $dg arc insert $cset $succ
210 if {$succ eq $cset} {
211 $cset loopcheck
212 trouble fatal "[$cset str] depends on itself"
213 }
214 }
215 incr n
216 }
217
@@ -431,11 +431,11 @@
431 # the chosen set. These are ignored
432 if {![$dg node exists $succ]} continue
433 $dg arc insert $cset $succ
434 if {$succ eq $cset} {
435 $cset loopcheck
436 trouble fatal "[$cset str] depends on itself"
437 }
438 }
439 }
440 foreach cset $pre {
441 foreach succ [$cset successors] {
442
--- tools/cvs2fossil/lib/c2f_cyclebreaker.tcl
+++ tools/cvs2fossil/lib/c2f_cyclebreaker.tcl
@@ -207,11 +207,11 @@
207 # chosen set. These are ignored
208 if {![$dg node exists $succ]} continue
209 $dg arc insert $cset $succ
210 if {$succ eq $cset} {
211 $cset loopcheck
212 trouble internal "[$cset str] depends on itself"
213 }
214 }
215 incr n
216 }
217
@@ -431,11 +431,11 @@
431 # the chosen set. These are ignored
432 if {![$dg node exists $succ]} continue
433 $dg arc insert $cset $succ
434 if {$succ eq $cset} {
435 $cset loopcheck
436 trouble internal "[$cset str] depends on itself"
437 }
438 }
439 }
440 foreach cset $pre {
441 foreach succ [$cset successors] {
442

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button