Fossil SCM

Tweaked log output a bit. Bugfixes: Forgot to propagate the border information into SplitRevisions, and a varname typo.

aku 2007-11-24 04:19 trunk
Commit 6d63634309ff7e98019353cf539e471641a65730
--- tools/cvs2fossil/lib/c2f_pbreakacycle.tcl
+++ tools/cvs2fossil/lib/c2f_pbreakacycle.tcl
@@ -155,27 +155,27 @@
155155
156156
# limits : dict (revision -> list (max predecessor commit, min sucessor commit))
157157
158158
ComputeLimits $cset limits border
159159
160
- log write 6 breakacycle "At commit position border $border"
160
+ log write 6 breakacycle "Using commit position $border as border"
161161
162162
# Then we sort the file level items based on there they
163163
# sit relative to the border into before and after the
164164
# border.
165165
166
- SplitRevisions $limits normalrevisions backwardrevisions
166
+ SplitRevisions $limits $border normalrevisions backwardrevisions
167167
168168
set replacements [project::rev split $cset $normalrevisions $backwardrevisions]
169169
cyclebreaker replace $graph $cset $replacements
170170
171171
# At last check that the normal frament is indeed not
172172
# backward, and iterate over the possibly still backward
173173
# second fragment.
174174
175175
struct::list assign $replacements normal backward
176
- if {[IsABackwardBranch $dg $normal]} { trouble internal "The normal fragment is unexpectedly a backward branch" }
176
+ if {[IsABackwardBranch $graph $normal]} { trouble internal "The normal fragment is unexpectedly a backward branch" }
177177
178178
set cset $backward
179179
}
180180
return
181181
}
@@ -279,11 +279,11 @@
279279
return $res
280280
}
281281
282282
proc MinSuccessorPosition {item} { lindex $item 1 }
283283
284
- proc SplitRevisions {limits nv bv} {
284
+ proc SplitRevisions {limits border nv bv} {
285285
upvar 1 $nv normalrevisions $bv backwardrevisions
286286
287287
set normalrevisions {}
288288
set backwardrevisions {}
289289
290290
--- tools/cvs2fossil/lib/c2f_pbreakacycle.tcl
+++ tools/cvs2fossil/lib/c2f_pbreakacycle.tcl
@@ -155,27 +155,27 @@
155
156 # limits : dict (revision -> list (max predecessor commit, min sucessor commit))
157
158 ComputeLimits $cset limits border
159
160 log write 6 breakacycle "At commit position border $border"
161
162 # Then we sort the file level items based on there they
163 # sit relative to the border into before and after the
164 # border.
165
166 SplitRevisions $limits normalrevisions backwardrevisions
167
168 set replacements [project::rev split $cset $normalrevisions $backwardrevisions]
169 cyclebreaker replace $graph $cset $replacements
170
171 # At last check that the normal frament is indeed not
172 # backward, and iterate over the possibly still backward
173 # second fragment.
174
175 struct::list assign $replacements normal backward
176 if {[IsABackwardBranch $dg $normal]} { trouble internal "The normal fragment is unexpectedly a backward branch" }
177
178 set cset $backward
179 }
180 return
181 }
@@ -279,11 +279,11 @@
279 return $res
280 }
281
282 proc MinSuccessorPosition {item} { lindex $item 1 }
283
284 proc SplitRevisions {limits nv bv} {
285 upvar 1 $nv normalrevisions $bv backwardrevisions
286
287 set normalrevisions {}
288 set backwardrevisions {}
289
290
--- tools/cvs2fossil/lib/c2f_pbreakacycle.tcl
+++ tools/cvs2fossil/lib/c2f_pbreakacycle.tcl
@@ -155,27 +155,27 @@
155
156 # limits : dict (revision -> list (max predecessor commit, min sucessor commit))
157
158 ComputeLimits $cset limits border
159
160 log write 6 breakacycle "Using commit position $border as border"
161
162 # Then we sort the file level items based on there they
163 # sit relative to the border into before and after the
164 # border.
165
166 SplitRevisions $limits $border normalrevisions backwardrevisions
167
168 set replacements [project::rev split $cset $normalrevisions $backwardrevisions]
169 cyclebreaker replace $graph $cset $replacements
170
171 # At last check that the normal frament is indeed not
172 # backward, and iterate over the possibly still backward
173 # second fragment.
174
175 struct::list assign $replacements normal backward
176 if {[IsABackwardBranch $graph $normal]} { trouble internal "The normal fragment is unexpectedly a backward branch" }
177
178 set cset $backward
179 }
180 return
181 }
@@ -279,11 +279,11 @@
279 return $res
280 }
281
282 proc MinSuccessorPosition {item} { lindex $item 1 }
283
284 proc SplitRevisions {limits border nv bv} {
285 upvar 1 $nv normalrevisions $bv backwardrevisions
286
287 set normalrevisions {}
288 set backwardrevisions {}
289
290

Keyboard Shortcuts

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