Diff
Not logged in

Differences From:

File tools/cvs2fossil/lib/c2f_psym.tcl part of check-in [da9295c6f6] - Continued to flesh out revision and symbol processing. Started on the project level classses. by aku on 2007-10-12 07:18:27. [view]

To:

File tools/cvs2fossil/lib/c2f_psym.tcl part of check-in [67c24820c7] - Reworked the whole handling of meta data (author, commit message, plus project/branch information), so that revisions now store only the meta id, everything else is stored centrally. All the relevant pieces (author, cmessage, symbols, projects) now also get numeric ids assigned early instead of when being saved to the state. Project ids are loaded from the state now too. by aku on 2007-10-14 01:58:07. [view]

@@ -24,19 +24,24 @@
 snit::type ::vc::fossil::import::cvs::project::sym {
     # # ## ### ##### ######## #############
     ## Public API
 
-    constructor {name} {
+    constructor {name id} {
 	set myname $name
+	set myid   $id
 	return
     }
 
-    method name {} { return $myname }
+    method name {} { return $myname   }
+    method id   {} { return $myid }
 
     # # ## ### ##### ######## #############
     ## State
 
-    variable myname {}
+    variable myname {} ; # The symbol's name
+    variable myid   {} ; # Repository wide numeric id of the symbol.
+			 # This implicitly encodes the project as
+			 # well.
 
     # # ## ### ##### ######## #############
     ## Internal methods