Fossil SCM

Moved out-of-place state declarations to the proper phase (setup, not run).

aku 2007-11-16 06:55 trunk
Commit ce7fb48e8c175ce642955912f2b69b7c72cd2ef0
--- tools/cvs2fossil/lib/c2f_pbreakrcycle.tcl
+++ tools/cvs2fossil/lib/c2f_pbreakrcycle.tcl
@@ -43,10 +43,14 @@
4343
4444
typemethod setup {} {
4545
# Define the names and structure of the persistent state of
4646
# this pass.
4747
48
+ state reading revision
49
+ state reading changeset
50
+ state reading csrevision
51
+
4852
state writing csorder {
4953
-- Commit order of changesets based on their dependencies
5054
cid INTEGER NOT NULL REFERENCES changeset,
5155
pos INTEGER NOT NULL,
5256
UNIQUE (cid),
@@ -67,14 +71,10 @@
6771
6872
typemethod run {} {
6973
# Pass manager interface. Executed to perform the
7074
# functionality of the pass.
7175
72
- state reading revision
73
- state reading changeset
74
- state reading csrevision
75
-
7676
state transaction {
7777
cyclebreaker run [struct::list filter [project::rev all] \
7878
[myproc IsByRevision]] \
7979
[myproc SaveOrder]
8080
}
8181
--- tools/cvs2fossil/lib/c2f_pbreakrcycle.tcl
+++ tools/cvs2fossil/lib/c2f_pbreakrcycle.tcl
@@ -43,10 +43,14 @@
43
44 typemethod setup {} {
45 # Define the names and structure of the persistent state of
46 # this pass.
47
 
 
 
 
48 state writing csorder {
49 -- Commit order of changesets based on their dependencies
50 cid INTEGER NOT NULL REFERENCES changeset,
51 pos INTEGER NOT NULL,
52 UNIQUE (cid),
@@ -67,14 +71,10 @@
67
68 typemethod run {} {
69 # Pass manager interface. Executed to perform the
70 # functionality of the pass.
71
72 state reading revision
73 state reading changeset
74 state reading csrevision
75
76 state transaction {
77 cyclebreaker run [struct::list filter [project::rev all] \
78 [myproc IsByRevision]] \
79 [myproc SaveOrder]
80 }
81
--- tools/cvs2fossil/lib/c2f_pbreakrcycle.tcl
+++ tools/cvs2fossil/lib/c2f_pbreakrcycle.tcl
@@ -43,10 +43,14 @@
43
44 typemethod setup {} {
45 # Define the names and structure of the persistent state of
46 # this pass.
47
48 state reading revision
49 state reading changeset
50 state reading csrevision
51
52 state writing csorder {
53 -- Commit order of changesets based on their dependencies
54 cid INTEGER NOT NULL REFERENCES changeset,
55 pos INTEGER NOT NULL,
56 UNIQUE (cid),
@@ -67,14 +71,10 @@
71
72 typemethod run {} {
73 # Pass manager interface. Executed to perform the
74 # functionality of the pass.
75
 
 
 
 
76 state transaction {
77 cyclebreaker run [struct::list filter [project::rev all] \
78 [myproc IsByRevision]] \
79 [myproc SaveOrder]
80 }
81
--- tools/cvs2fossil/lib/c2f_pbreakscycle.tcl
+++ tools/cvs2fossil/lib/c2f_pbreakscycle.tcl
@@ -41,10 +41,14 @@
4141
## Public API
4242
4343
typemethod setup {} {
4444
# Define the names and structure of the persistent state of
4545
# this pass.
46
+
47
+ state reading revision
48
+ state reading changeset
49
+ state reading csrevision
4650
return
4751
}
4852
4953
typemethod load {} {
5054
# Pass manager interface. Executed to load data computed by
@@ -55,14 +59,10 @@
5559
5660
typemethod run {} {
5761
# Pass manager interface. Executed to perform the
5862
# functionality of the pass.
5963
60
- state reading revision
61
- state reading changeset
62
- state reading csrevision
63
-
6464
state transaction {
6565
cyclebreaker run [struct::list filter [project::rev all] \
6666
[myproc IsBySymbol]]
6767
}
6868
return
6969
--- tools/cvs2fossil/lib/c2f_pbreakscycle.tcl
+++ tools/cvs2fossil/lib/c2f_pbreakscycle.tcl
@@ -41,10 +41,14 @@
41 ## Public API
42
43 typemethod setup {} {
44 # Define the names and structure of the persistent state of
45 # this pass.
 
 
 
 
46 return
47 }
48
49 typemethod load {} {
50 # Pass manager interface. Executed to load data computed by
@@ -55,14 +59,10 @@
55
56 typemethod run {} {
57 # Pass manager interface. Executed to perform the
58 # functionality of the pass.
59
60 state reading revision
61 state reading changeset
62 state reading csrevision
63
64 state transaction {
65 cyclebreaker run [struct::list filter [project::rev all] \
66 [myproc IsBySymbol]]
67 }
68 return
69
--- tools/cvs2fossil/lib/c2f_pbreakscycle.tcl
+++ tools/cvs2fossil/lib/c2f_pbreakscycle.tcl
@@ -41,10 +41,14 @@
41 ## Public API
42
43 typemethod setup {} {
44 # Define the names and structure of the persistent state of
45 # this pass.
46
47 state reading revision
48 state reading changeset
49 state reading csrevision
50 return
51 }
52
53 typemethod load {} {
54 # Pass manager interface. Executed to load data computed by
@@ -55,14 +59,10 @@
59
60 typemethod run {} {
61 # Pass manager interface. Executed to perform the
62 # functionality of the pass.
63
 
 
 
 
64 state transaction {
65 cyclebreaker run [struct::list filter [project::rev all] \
66 [myproc IsBySymbol]]
67 }
68 return
69

Keyboard Shortcuts

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