Fossil SCM

Fixed handling of project objects when persisting them. Fill the project map. This is needed if the pass is not skipped. For the skip case we already initialize the project map when 'load'ing from the state.

aku 2007-11-14 05:08 trunk
Commit 67600f777bb412f6205a3e9adf15221abbd8f792
--- tools/cvs2fossil/lib/c2f_repository.tcl
+++ tools/cvs2fossil/lib/c2f_repository.tcl
@@ -131,12 +131,16 @@
131131
return
132132
}
133133
134134
# pass I persistence
135135
typemethod persist {} {
136
+ ::variable myprojmap
136137
state transaction {
137
- foreach p [TheProjects] { $p persist }
138
+ foreach p [TheProjects] {
139
+ $p persist
140
+ set myprojmap([$p id]) $p
141
+ }
138142
}
139143
return
140144
}
141145
142146
typemethod load {} {
143147
--- tools/cvs2fossil/lib/c2f_repository.tcl
+++ tools/cvs2fossil/lib/c2f_repository.tcl
@@ -131,12 +131,16 @@
131 return
132 }
133
134 # pass I persistence
135 typemethod persist {} {
 
136 state transaction {
137 foreach p [TheProjects] { $p persist }
 
 
 
138 }
139 return
140 }
141
142 typemethod load {} {
143
--- tools/cvs2fossil/lib/c2f_repository.tcl
+++ tools/cvs2fossil/lib/c2f_repository.tcl
@@ -131,12 +131,16 @@
131 return
132 }
133
134 # pass I persistence
135 typemethod persist {} {
136 ::variable myprojmap
137 state transaction {
138 foreach p [TheProjects] {
139 $p persist
140 set myprojmap([$p id]) $p
141 }
142 }
143 return
144 }
145
146 typemethod load {} {
147

Keyboard Shortcuts

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