Fossil SCM

Bugfix. When I introduced the 'revisionbranchchildren' table to pass 2 I forgot to update pass 4 as well. Added code to drop the excluded revisons from this table as well, as either parent of branches, or branch child of some other revision.

aku 2007-11-16 03:54 trunk
Commit 2516f4a56d8381a746bfa0a1487fc6f74f16d0c9
--- tools/cvs2fossil/lib/c2f_pfiltersym.tcl
+++ tools/cvs2fossil/lib/c2f_pfiltersym.tcl
@@ -47,10 +47,11 @@
4747
state reading symbol
4848
state reading blocker
4949
state reading parent
5050
state reading preferedparent
5151
state reading revision
52
+ state reading revisionbranchchildren
5253
state reading branch
5354
state reading tag
5455
5556
state writing noop {
5657
id INTEGER NOT NULL PRIMARY KEY, -- tag/branch reference
@@ -194,16 +195,23 @@
194195
# excluded symbols in some way. This is easy as we do not have
195196
# to select them again and again from the base tables any
196197
# longer.
197198
198199
state run {
200
+ CREATE TEMPORARY TABLE excludedrevisions AS
201
+ SELECT rid FROM revision WHERE lod IN excludedsymbols;
202
+
199203
DELETE FROM revision WHERE lod IN excludedsymbols;
200204
DELETE FROM tag WHERE lod IN excludedsymbols;
201205
DELETE FROM tag WHERE sid IN excludedsymbols;
202206
DELETE FROM branch WHERE lod IN excludedsymbols;
203207
DELETE FROM branch WHERE sid IN excludedsymbols;
204208
209
+ DELETE FROM revisionbranchchildren WHERE rid IN excludedrevisions;
210
+ DELETE FROM revisionbranchchildren WHERE brid IN excludedrevisions;
211
+
212
+ DROP TABLE excludedrevisions;
205213
DROP TABLE excludedsymbols;
206214
}
207215
return
208216
}
209217
210218
--- tools/cvs2fossil/lib/c2f_pfiltersym.tcl
+++ tools/cvs2fossil/lib/c2f_pfiltersym.tcl
@@ -47,10 +47,11 @@
47 state reading symbol
48 state reading blocker
49 state reading parent
50 state reading preferedparent
51 state reading revision
 
52 state reading branch
53 state reading tag
54
55 state writing noop {
56 id INTEGER NOT NULL PRIMARY KEY, -- tag/branch reference
@@ -194,16 +195,23 @@
194 # excluded symbols in some way. This is easy as we do not have
195 # to select them again and again from the base tables any
196 # longer.
197
198 state run {
 
 
 
199 DELETE FROM revision WHERE lod IN excludedsymbols;
200 DELETE FROM tag WHERE lod IN excludedsymbols;
201 DELETE FROM tag WHERE sid IN excludedsymbols;
202 DELETE FROM branch WHERE lod IN excludedsymbols;
203 DELETE FROM branch WHERE sid IN excludedsymbols;
204
 
 
 
 
205 DROP TABLE excludedsymbols;
206 }
207 return
208 }
209
210
--- tools/cvs2fossil/lib/c2f_pfiltersym.tcl
+++ tools/cvs2fossil/lib/c2f_pfiltersym.tcl
@@ -47,10 +47,11 @@
47 state reading symbol
48 state reading blocker
49 state reading parent
50 state reading preferedparent
51 state reading revision
52 state reading revisionbranchchildren
53 state reading branch
54 state reading tag
55
56 state writing noop {
57 id INTEGER NOT NULL PRIMARY KEY, -- tag/branch reference
@@ -194,16 +195,23 @@
195 # excluded symbols in some way. This is easy as we do not have
196 # to select them again and again from the base tables any
197 # longer.
198
199 state run {
200 CREATE TEMPORARY TABLE excludedrevisions AS
201 SELECT rid FROM revision WHERE lod IN excludedsymbols;
202
203 DELETE FROM revision WHERE lod IN excludedsymbols;
204 DELETE FROM tag WHERE lod IN excludedsymbols;
205 DELETE FROM tag WHERE sid IN excludedsymbols;
206 DELETE FROM branch WHERE lod IN excludedsymbols;
207 DELETE FROM branch WHERE sid IN excludedsymbols;
208
209 DELETE FROM revisionbranchchildren WHERE rid IN excludedrevisions;
210 DELETE FROM revisionbranchchildren WHERE brid IN excludedrevisions;
211
212 DROP TABLE excludedrevisions;
213 DROP TABLE excludedsymbols;
214 }
215 return
216 }
217
218

Keyboard Shortcuts

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