Diff
Not logged in

Differences From:

File tools/cvs2fossil/lib/c2f_frev.tcl part of check-in [7ab490df24] - Extended pass 2, save branch positions, needed for pass 4, and added optype table to have the revision opcodes available in the state as well. by aku on 2007-11-07 06:19:13. [view]

To:

File tools/cvs2fossil/lib/c2f_frev.tcl part of check-in [e45f47ec4a] - Opcode synchronization reworked, optype table is master from which the in-memory array is loaded. by aku on 2007-11-07 07:46:31. [view]

@@ -483,15 +483,17 @@
 	{0 1} delete
 	{1 0} add
 	{1 1} nothing
     }
-    # Keep myopcode in sync with project::collrev.optype
-    typevariable myopcode -array {
-	change   2
-	delete  -1
-	add      1
-	nothing  0
+
+    typemethod getopcodes {} {
+	foreach {id name} [state run {
+	    SELECT oid, name FROM optype;
+	}] { set myopcode($name) $id }
+	return
     }
+
+    typevariable myopcode -array {}
 
     # # ## ### ##### ######## #############
     ## Internal methods