Fossil SCM

Restructured the code handling NTBD in ExcludeBranch a bit to prevent the asserts in GraftNTDB2Trunk to bail out.

aku 2007-10-23 04:36 trunk
Commit e94b52b6f2fd7a5ba59708d7c5dd49325f69e0e8
--- tools/cvs2fossil/lib/c2f_file.tcl
+++ tools/cvs2fossil/lib/c2f_file.tcl
@@ -853,20 +853,21 @@
853853
# truly on a branch and have to be excluded. The following
854854
# loop determines if there are such revisions.
855855
856856
upvar 1 $nv ntdbroot
857857
set ntdbroot $root
858
+ $root cutfromparentbranch
858859
859
- set rev [$root child]
860
+ set rev $root
860861
while {$rev ne ""} {
861862
$rev removeallbranches
862863
# See note [x].
863864
864865
if {[$rev isondefaultbranch]} {
865866
set rev [$rev child]
866867
} else {
867
- set rev ""
868
+ break
868869
}
869870
}
870871
871872
# rev now contains the first non-NTDB revision after the
872873
# NTDB, or is empty if there is no such. If we have some
873874
--- tools/cvs2fossil/lib/c2f_file.tcl
+++ tools/cvs2fossil/lib/c2f_file.tcl
@@ -853,20 +853,21 @@
853 # truly on a branch and have to be excluded. The following
854 # loop determines if there are such revisions.
855
856 upvar 1 $nv ntdbroot
857 set ntdbroot $root
 
858
859 set rev [$root child]
860 while {$rev ne ""} {
861 $rev removeallbranches
862 # See note [x].
863
864 if {[$rev isondefaultbranch]} {
865 set rev [$rev child]
866 } else {
867 set rev ""
868 }
869 }
870
871 # rev now contains the first non-NTDB revision after the
872 # NTDB, or is empty if there is no such. If we have some
873
--- tools/cvs2fossil/lib/c2f_file.tcl
+++ tools/cvs2fossil/lib/c2f_file.tcl
@@ -853,20 +853,21 @@
853 # truly on a branch and have to be excluded. The following
854 # loop determines if there are such revisions.
855
856 upvar 1 $nv ntdbroot
857 set ntdbroot $root
858 $root cutfromparentbranch
859
860 set rev $root
861 while {$rev ne ""} {
862 $rev removeallbranches
863 # See note [x].
864
865 if {[$rev isondefaultbranch]} {
866 set rev [$rev child]
867 } else {
868 break
869 }
870 }
871
872 # rev now contains the first non-NTDB revision after the
873 # NTDB, or is empty if there is no such. If we have some
874

Keyboard Shortcuts

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