D 2007-12-04T20:37:31 L Import\sCVS\sRepositories P e5b344f6b26dffaaaaa0c4991b39d84e6372b1e9 U anonymous W 4003 Spiritual ancestor: [http://cvs2svn.tigris.org/|cvs2svn]. Similarities: * Using identical highlevel architecture (pass-based) * Using some specific algorithms (graph traversal). Differences: * Not using any code (Different languages for one thing, [http://www.python.org/|Python] there, [http://www.tcl.tk/|Tcl]here.). * Persistent state completely different, using [http://www.sqlite.org/|sqlite] database for all things. Status: * Pass CollAr: Collect archives - ok. * Pass CollRev: Collect revisions, tags, branches (file level) - ok. * Pass CollSym: Collate symbol (project level) from the file level data - ok. * Pass FilterSym: Filter symbols, exclude symbols and lines of development - ok. * Pass InitCsets: Create initial changesets - ok. Memory Hog, Slow commit * Pass CsetDeps: Compute changeset dependencies from revision dependencies - ok. * Pass BreakRCycle: Break cycles among revision changesets - ok. * Pass RevTopSort: Topologically sort revision changesets - ok. * Pass BreakSCycle: Break cycles among symbol changesets - ok. * Pass BreakACycle: Break cycles over all changesets - May still change the order of revision changesets over the result of pass 7. * Pass ATopSort: Should be ok. Passes to do: * Put changeset order from the top.sort passes and tree of symbols from the coll|FilterSym passes together into a tree of changesets. Note that it might not be a tree if there is an NTDB around. * Perform the actual import. Notes regarding the actual import:
fossil import-files SPECFILEwhich imports and deltifies files as blob per the SPECFILE, returning on stdout the associated of paths and internal ids. Example SPECFILE:
F path1 D path2 path1 ...The 'F' card tells it to import 'path1' as is. The 'D' card then tells it to import 'path2' as is and then deltify 'path1' in terms of 'path2'. And so on.
fossil import-manifest user timestamp MESSAGEFILE FILEFILE parent...The 'messagefile' contains the log message, the 'filefile' lists the revisions in the manifest by id, and with path in the workspace. The parents are the ids of the parent manifests. The result of the command is the id of the new manifest.