Differences From:
File
tools/cvs2fossil/lib/c2f_pinitcsets.tcl
part of check-in
[e288af3995]
- Fluff: Renamed state methods use/reading/writing to usedb/use/extend for clarity. Updated all callers.
Extended state module with code to dump the SQL statements it receives to a file for analysis.
Extended the 'use' declarations of several passes.
by
aku on
2007-12-02 23:47:45.
[view]
To:
File
tools/cvs2fossil/lib/c2f_pinitcsets.tcl
part of check-in
[49dd66f64f]
- Moved the code loading changesets from state to its proper class.
by
aku on
2008-01-30 03:23:02.
[view]
@@ -111,31 +111,13 @@
state use changeset
state use csitem
state use cstype
- # Need the types first, the constructor in the loop below uses
- # them to assert the correctness of type names.
+ # Need the types first, the constructor used inside of the
+ # 'load' below uses them to assert the correctness of type
+ # names.
project::rev getcstypes
-
- # TODO: Move to project::rev
- set n 0
- log write 2 initcsets {Loading the changesets}
- foreach {id pid cstype srcid} [state run {
- SELECT C.cid, C.pid, CS.name, C.src
- FROM changeset C, cstype CS
- WHERE C.type = CS.tid
- ORDER BY C.cid
- }] {
- log progress 2 initcsets $n {}
- set r [project::rev %AUTO% [repository projectof $pid] $cstype $srcid [state run {
- SELECT C.iid
- FROM csitem C
- WHERE C.cid = $id
- ORDER BY C.pos
- }] $id]
- incr n
- }
-
+ project::rev load
project::rev loadcounter
return
}