Fossil SCM

Fix use (scoping) of revision items when looking for vendor branch data.

aku 2008-02-02 05:07 trunk
Commit b405f4fc04a48ff8ede5e58e23a0889661ace964
--- tools/cvs2fossil/lib/c2f_prev.tcl
+++ tools/cvs2fossil/lib/c2f_prev.tcl
@@ -415,11 +415,11 @@
415415
# uuids and printable data.
416416
417417
set uuid [Updatestate state $lodname \
418418
[$repository importrevision [$self str] \
419419
$user $message $date \
420
- [Getparent state $lodname $myproject] \
420
+ [Getparent state $lodname $myproject $myitems] \
421421
[Getrevisioninfo $myitems]]]
422422
423423
# Remember the whole changeset / uuid mapping, for the tags.
424424
425425
state run {
@@ -442,14 +442,14 @@
442442
lappend revisions $frid $path $fname/$revnr
443443
}
444444
return $revisions
445445
}
446446
447
- proc Getparent {sv lodname project} {
447
+ proc Getparent {sv lodname project items} {
448448
upvar 1 $sv state
449449
450
- struct::list assign [Getisdefault $myitems] isdefault lastdefaultontrunk
450
+ struct::list assign [Getisdefault $items] isdefault lastdefaultontrunk
451451
452452
# See (a) below, we have to remember if the changeset is last
453453
# on vendor branch also belonging to trunk even if we find a
454454
# parent in the state. The caller will later (after import)
455455
# make us the first trunk changeset in the state (See (**)).
456456
--- tools/cvs2fossil/lib/c2f_prev.tcl
+++ tools/cvs2fossil/lib/c2f_prev.tcl
@@ -415,11 +415,11 @@
415 # uuids and printable data.
416
417 set uuid [Updatestate state $lodname \
418 [$repository importrevision [$self str] \
419 $user $message $date \
420 [Getparent state $lodname $myproject] \
421 [Getrevisioninfo $myitems]]]
422
423 # Remember the whole changeset / uuid mapping, for the tags.
424
425 state run {
@@ -442,14 +442,14 @@
442 lappend revisions $frid $path $fname/$revnr
443 }
444 return $revisions
445 }
446
447 proc Getparent {sv lodname project} {
448 upvar 1 $sv state
449
450 struct::list assign [Getisdefault $myitems] isdefault lastdefaultontrunk
451
452 # See (a) below, we have to remember if the changeset is last
453 # on vendor branch also belonging to trunk even if we find a
454 # parent in the state. The caller will later (after import)
455 # make us the first trunk changeset in the state (See (**)).
456
--- tools/cvs2fossil/lib/c2f_prev.tcl
+++ tools/cvs2fossil/lib/c2f_prev.tcl
@@ -415,11 +415,11 @@
415 # uuids and printable data.
416
417 set uuid [Updatestate state $lodname \
418 [$repository importrevision [$self str] \
419 $user $message $date \
420 [Getparent state $lodname $myproject $myitems] \
421 [Getrevisioninfo $myitems]]]
422
423 # Remember the whole changeset / uuid mapping, for the tags.
424
425 state run {
@@ -442,14 +442,14 @@
442 lappend revisions $frid $path $fname/$revnr
443 }
444 return $revisions
445 }
446
447 proc Getparent {sv lodname project items} {
448 upvar 1 $sv state
449
450 struct::list assign [Getisdefault $items] isdefault lastdefaultontrunk
451
452 # See (a) below, we have to remember if the changeset is last
453 # on vendor branch also belonging to trunk even if we find a
454 # parent in the state. The caller will later (after import)
455 # make us the first trunk changeset in the state (See (**)).
456

Keyboard Shortcuts

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