Fossil SCM

Fixed bug in the code detaching a vendor branch. Left link to removed parent dangling, and killed connection to first on branch. No more.

aku 2008-01-27 20:40 trunk
Commit 0adaabf11231d63b5ded188dc7fe95d987257a88
--- tools/cvs2fossil/lib/c2f_file.tcl
+++ tools/cvs2fossil/lib/c2f_file.tcl
@@ -961,12 +961,12 @@
961961
set vendor [$first parentbranch]
962962
integrity assert {$vendor ne ""} {First NTDB revision has no branch}
963963
if {[$vendor parent] eq $rev11} {
964964
$rev11 removebranch $vendor
965965
$rev11 removechildonbranch $first
966
- $vendor cutchild
967
- $first cutfromparentbranch
966
+ $vendor cutbranchparent ;# bp = rev11, about to be gone
967
+ $first cutfromparentbranch ;# pb = vendor, to be a detached LOD
968968
lappend myroots $first
969969
}
970970
971971
# Change the type of first (typically from Change to Add):
972972
$first retype add
973973
--- tools/cvs2fossil/lib/c2f_file.tcl
+++ tools/cvs2fossil/lib/c2f_file.tcl
@@ -961,12 +961,12 @@
961 set vendor [$first parentbranch]
962 integrity assert {$vendor ne ""} {First NTDB revision has no branch}
963 if {[$vendor parent] eq $rev11} {
964 $rev11 removebranch $vendor
965 $rev11 removechildonbranch $first
966 $vendor cutchild
967 $first cutfromparentbranch
968 lappend myroots $first
969 }
970
971 # Change the type of first (typically from Change to Add):
972 $first retype add
973
--- tools/cvs2fossil/lib/c2f_file.tcl
+++ tools/cvs2fossil/lib/c2f_file.tcl
@@ -961,12 +961,12 @@
961 set vendor [$first parentbranch]
962 integrity assert {$vendor ne ""} {First NTDB revision has no branch}
963 if {[$vendor parent] eq $rev11} {
964 $rev11 removebranch $vendor
965 $rev11 removechildonbranch $first
966 $vendor cutbranchparent ;# bp = rev11, about to be gone
967 $first cutfromparentbranch ;# pb = vendor, to be a detached LOD
968 lappend myroots $first
969 }
970
971 # Change the type of first (typically from Change to Add):
972 $first retype add
973

Keyboard Shortcuts

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