Fossil SCM

Moved the parts taken over by the top. sort passes out the breaker passes, and renumbered them (comments).

aku 2007-11-25 03:00 trunk
Commit b6b7ff79ccf41d67015daea1f8baf283c599dda8
--- tools/cvs2fossil/lib/c2f_pbreakrcycle.tcl
+++ tools/cvs2fossil/lib/c2f_pbreakrcycle.tcl
@@ -47,36 +47,24 @@
4747
# this pass.
4848
4949
state reading revision
5050
state reading changeset
5151
state reading csrevision
52
-
53
- state writing csorder {
54
- -- Commit order of changesets based on their dependencies
55
- cid INTEGER NOT NULL REFERENCES changeset,
56
- pos INTEGER NOT NULL,
57
- UNIQUE (cid),
58
- UNIQUE (pos)
59
- }
6052
return
6153
}
6254
6355
typemethod load {} {
6456
# Pass manager interface. Executed to load data computed by
6557
# this pass into memory when this pass is skipped instead of
6658
# executed.
67
-
68
- state reading changeset
69
- project::rev loadcounter
7059
return
7160
}
7261
7362
typemethod run {} {
7463
# Pass manager interface. Executed to perform the
7564
# functionality of the pass.
7665
77
- cyclebreaker savecmd [myproc SaveOrder]
7866
cyclebreaker breakcmd {::vc::fossil::import::cvs::cyclebreaker break}
7967
8068
state transaction {
8169
cyclebreaker run break-rev [myproc Changesets]
8270
}
@@ -87,12 +75,10 @@
8775
8876
typemethod discard {} {
8977
# Pass manager interface. Executed for all passes after the
9078
# run passes, to remove all data of this pass from the state,
9179
# as being out of date.
92
-
93
- state discard csorder
9480
return
9581
}
9682
9783
# # ## ### ##### ######## #############
9884
## Internal methods
@@ -101,22 +87,10 @@
10187
return [struct::list filter [project::rev all] [myproc IsByRevision]]
10288
}
10389
10490
proc IsByRevision {cset} { $cset byrevision }
10591
106
- proc SaveOrder {graph at cset} {
107
- set cid [$cset id]
108
-
109
- log write 4 breakrcycle "Comitting @ $at: [$cset str]"
110
- state run {
111
- INSERT INTO csorder (cid, pos)
112
- VALUES ($cid, $at)
113
- }
114
- # MAYBE TODO: Write the project level changeset dependencies as well.
115
- return
116
- }
117
-
11892
# # ## ### ##### ######## #############
11993
## Configuration
12094
12195
pragma -hasinstances no ; # singleton
12296
pragma -hastypeinfo no ; # no introspection
12397
--- tools/cvs2fossil/lib/c2f_pbreakrcycle.tcl
+++ tools/cvs2fossil/lib/c2f_pbreakrcycle.tcl
@@ -47,36 +47,24 @@
47 # this pass.
48
49 state reading revision
50 state reading changeset
51 state reading csrevision
52
53 state writing csorder {
54 -- Commit order of changesets based on their dependencies
55 cid INTEGER NOT NULL REFERENCES changeset,
56 pos INTEGER NOT NULL,
57 UNIQUE (cid),
58 UNIQUE (pos)
59 }
60 return
61 }
62
63 typemethod load {} {
64 # Pass manager interface. Executed to load data computed by
65 # this pass into memory when this pass is skipped instead of
66 # executed.
67
68 state reading changeset
69 project::rev loadcounter
70 return
71 }
72
73 typemethod run {} {
74 # Pass manager interface. Executed to perform the
75 # functionality of the pass.
76
77 cyclebreaker savecmd [myproc SaveOrder]
78 cyclebreaker breakcmd {::vc::fossil::import::cvs::cyclebreaker break}
79
80 state transaction {
81 cyclebreaker run break-rev [myproc Changesets]
82 }
@@ -87,12 +75,10 @@
87
88 typemethod discard {} {
89 # Pass manager interface. Executed for all passes after the
90 # run passes, to remove all data of this pass from the state,
91 # as being out of date.
92
93 state discard csorder
94 return
95 }
96
97 # # ## ### ##### ######## #############
98 ## Internal methods
@@ -101,22 +87,10 @@
101 return [struct::list filter [project::rev all] [myproc IsByRevision]]
102 }
103
104 proc IsByRevision {cset} { $cset byrevision }
105
106 proc SaveOrder {graph at cset} {
107 set cid [$cset id]
108
109 log write 4 breakrcycle "Comitting @ $at: [$cset str]"
110 state run {
111 INSERT INTO csorder (cid, pos)
112 VALUES ($cid, $at)
113 }
114 # MAYBE TODO: Write the project level changeset dependencies as well.
115 return
116 }
117
118 # # ## ### ##### ######## #############
119 ## Configuration
120
121 pragma -hasinstances no ; # singleton
122 pragma -hastypeinfo no ; # no introspection
123
--- tools/cvs2fossil/lib/c2f_pbreakrcycle.tcl
+++ tools/cvs2fossil/lib/c2f_pbreakrcycle.tcl
@@ -47,36 +47,24 @@
47 # this pass.
48
49 state reading revision
50 state reading changeset
51 state reading csrevision
 
 
 
 
 
 
 
 
52 return
53 }
54
55 typemethod load {} {
56 # Pass manager interface. Executed to load data computed by
57 # this pass into memory when this pass is skipped instead of
58 # executed.
 
 
 
59 return
60 }
61
62 typemethod run {} {
63 # Pass manager interface. Executed to perform the
64 # functionality of the pass.
65
 
66 cyclebreaker breakcmd {::vc::fossil::import::cvs::cyclebreaker break}
67
68 state transaction {
69 cyclebreaker run break-rev [myproc Changesets]
70 }
@@ -87,12 +75,10 @@
75
76 typemethod discard {} {
77 # Pass manager interface. Executed for all passes after the
78 # run passes, to remove all data of this pass from the state,
79 # as being out of date.
 
 
80 return
81 }
82
83 # # ## ### ##### ######## #############
84 ## Internal methods
@@ -101,22 +87,10 @@
87 return [struct::list filter [project::rev all] [myproc IsByRevision]]
88 }
89
90 proc IsByRevision {cset} { $cset byrevision }
91
 
 
 
 
 
 
 
 
 
 
 
 
92 # # ## ### ##### ######## #############
93 ## Configuration
94
95 pragma -hasinstances no ; # singleton
96 pragma -hastypeinfo no ; # no introspection
97
--- tools/cvs2fossil/lib/c2f_pbreakscycle.tcl
+++ tools/cvs2fossil/lib/c2f_pbreakscycle.tcl
@@ -8,11 +8,11 @@
88
# This software consists of voluntary contributions made by many
99
# individuals. For exact contribution history, see the revision
1010
# history and logs, available at http://fossil-scm.hwaci.com/fossil
1111
# # ## ### ##### ######## ############# #####################
1212
13
-## Pass VII. This pass goes over the set of symbol based changesets
13
+## Pass VIII. This pass goes over the set of symbol based changesets
1414
## and breaks all dependency cycles they may be in. We need a
1515
## dependency tree. Identical to pass VI, except for the selection of
1616
## the changesets.
1717
1818
# # ## ### ##### ######## ############# #####################
1919
--- tools/cvs2fossil/lib/c2f_pbreakscycle.tcl
+++ tools/cvs2fossil/lib/c2f_pbreakscycle.tcl
@@ -8,11 +8,11 @@
8 # This software consists of voluntary contributions made by many
9 # individuals. For exact contribution history, see the revision
10 # history and logs, available at http://fossil-scm.hwaci.com/fossil
11 # # ## ### ##### ######## ############# #####################
12
13 ## Pass VII. This pass goes over the set of symbol based changesets
14 ## and breaks all dependency cycles they may be in. We need a
15 ## dependency tree. Identical to pass VI, except for the selection of
16 ## the changesets.
17
18 # # ## ### ##### ######## ############# #####################
19
--- tools/cvs2fossil/lib/c2f_pbreakscycle.tcl
+++ tools/cvs2fossil/lib/c2f_pbreakscycle.tcl
@@ -8,11 +8,11 @@
8 # This software consists of voluntary contributions made by many
9 # individuals. For exact contribution history, see the revision
10 # history and logs, available at http://fossil-scm.hwaci.com/fossil
11 # # ## ### ##### ######## ############# #####################
12
13 ## Pass VIII. This pass goes over the set of symbol based changesets
14 ## and breaks all dependency cycles they may be in. We need a
15 ## dependency tree. Identical to pass VI, except for the selection of
16 ## the changesets.
17
18 # # ## ### ##### ######## ############# #####################
19

Keyboard Shortcuts

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