History for tools/cvs2fossil/lib/c2f_pbreakrcycle.tcl

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for tools/cvs2fossil/lib/c2f_pbreakrcycle.tcl

[9b0d3d53] part of check-in [e288af39] Fluff: Renamed state methods use/reading/writing to usedb/use/extend for clarity. Updated all callers. Extended state module with code to dump the SQL statements it receives to a file for analysis. Extended the 'use' declarations of several passes. (check-in: [e288af39] user: aku branch: trunk, size: 4018)
[3c073e95] part of check-in [00bf8c19] The performance was still not satisfying, even with faster recomputing of successors. Doing it multiple times (Building the graph in each breaker and sort passes) eats time. Caching in memory blows the memory. Chosen solution: Cache this information in the database.    Created a new pass 'CsetDeps' which is run between 'InitCsets' and 'BreakRevCsetCycles' (i.e. changeset creation and first breaker pass). It computes the changeset dependencies from the file-level dependencies once and saves the result in the state, in the new table 'cssuccessor'. Now the breaker and sort passes can get the information quickly, with virtually no effort. The dependencies are recomputed incrementally when a changeset is split by one of the breaker passes, for its fragments and its predecessors.    The loop check is now trivial, and integrated into the successor computation, with the heavy lifting for the detailed analysis and reporting moved down into the type-dependent SQL queries. The relevant new method is 'loops'. Now that the loop check is incremental the pass based checks have been removed from the integrity module, and the option '--loopcheck' has been eliminated. For paranoia the graph setup and modification code got its loop check reinstated as an assert, redusing the changeset report code.    Renumbered the breaker and sort passes. A number of places, like graph setup and traversal, loading of changesets, etc. got feedback indicators to show their progress.    The selection of revision and symbol changesets for the associated breaker passes was a bit on the slow side. We now keep changeset lists sorted by type (during loading or general construction) and access them directly. (check-in: [00bf8c19] user: aku branch: trunk, size: 3970)
[0b1951c1] part of check-in [b42cff97] Replaced the checks for self-referential changesets in the cycle breaker with a scheme in the changeset class doing checks when splitting a changeset, which is also called by the general changeset integrity code, after each pass. Extended log output at high verbosity levels. Thorough checking of the fragments a changeset is to be split into. (check-in: [b42cff97] user: aku branch: trunk, size: 4023)
[4ea6d532] part of check-in [80b1e893] Renamed state table 'csrevision' to 'csitem' to reflect the new internals of changesets. Updated all places where it is used. (check-in: [80b1e893] user: aku branch: trunk, size: 4004)
[630bffc4] part of check-in [8c6488de] Continued work on the integrity checks for changesets. Moved callers out of transactions. Two checks are already tripping on bad changesets made by InitCSets (pass 5). (check-in: [8c6488de] user: aku branch: trunk, size: 4008)
[685d23fe] part of check-in [bf83201c] Outline for more integrity checks, focusing on the changesets. (check-in: [bf83201c] user: aku branch: trunk, size: 4016)
[f27a20d7] part of check-in [b679ca33] Code cleanup. Removed trailing whitespace across the board. (check-in: [b679ca33] user: aku branch: trunk, size: 3845)
[21b55594] part of check-in [b6b7ff79] Moved the parts taken over by the top. sort passes out the breaker passes, and renumbered them (comments). (check-in: [b6b7ff79] user: aku branch: trunk, size: 3846)
[e139c81d] part of check-in [87cf6090] Created convenience methods to create the human readable repesentation of a changeset and lists of such, and made liberal use of them. (check-in: [87cf6090] user: aku branch: trunk, size: 4461)
[956cfdff] part of check-in [7ed2f29d] Updated passes 6 and 8 for to the changtes in the cycle breaker API (changed signature of save callback). (check-in: [7ed2f29d] user: aku branch: trunk, size: 4450)
[9bec773f] part of check-in [2a0ec504] Cycle breaker, API change. The changesets are now communicated via a retrieval callback instead of directly. Updated passes 6 and 7. This allowed us to move the start/done graph exports into the cyclebreaker as well. Changeset selection in pass 8 now in separate command too for this. (check-in: [2a0ec504] user: aku branch: trunk, size: 4444)
[1228cf67] part of check-in [2cf0462b] Cycle breaker, API change. Routing the core cycle breaking through a callback so that users can choose their own algorithms. Updated passes 6 and 7. Moven changesets selection in pass 7 to separate command. (check-in: [2cf0462b] user: aku branch: trunk, size: 4559)
[d4b18e16] part of check-in [d58423cd] API change cycle breaker. The save callback command is now specified through a separate configuration command. Moved callback invokation to helper command. Updated pass 6. Moved changeset selection to helper command. (check-in: [d58423cd] user: aku branch: trunk, size: 4487)
[4f907e01] part of check-in [7f15be90] Added the ability to export the changeset graphs processed by the passes 6 to 8 using GraphViz's dot-format. This is activated by using the switch '--dots'. Bugfixes in the cycle breaker. First corrected variable names, I forgot to use the standard 'myXXX' format for the typevariables. Second, fixed a bug uncovered by looking at the exported graphs, which caused the system to loose arcs, possibly breaking cycles without actually breaking them, leaving them in the dependencies. (check-in: [7f15be90] user: aku branch: trunk, size: 4489)
[03010036] part of check-in [96b7bfb8] Added convenience command to the state package when the sql returns a single row. Added more statistics about revisions, tags, branches, symbols, changesets to various passes. (check-in: [96b7bfb8] user: aku branch: trunk, size: 4291)
[95b71ab7] part of check-in [ce7fb48e] Moved out-of-place state declarations to the proper phase (setup, not run). (check-in: [ce7fb48e] user: aku branch: trunk, size: 4117)
[7f124d81] part of check-in [770a9b57] Completed pass 7, breaking dependency cycles over symbol changesets. Moved the bulk of the cycle breaker code into its own class as it was common to the passes 6 and 7, and updated the two passes accordingly. Added code to load the changeset counter from the state to start properly. (check-in: [770a9b57] user: aku branch: trunk, size: 4117)
[bcbf738b] part of check-in [de64c94f] Bugfix. When setting up or extended the changeset graph a changeset's successor may lay outside of the set of changesets under consideration, i.e. without a node in the graph. Ignore these. This did not (or only rarely) happen before the bugfix to the successor computation of changesets in project::rev (list instead of single). (check-in: [de64c94f] user: aku branch: trunk, size: 10292)
[b471ab73] part of check-in [94c39d63] Completed pass 6, wrote the code performing the breaking of cycles. Done by analysing each triple of changesets in the cycle at the file dependency level to see which revisions can be sorted apart. Added some additional utility routines. Extended the changeset class with the accessors required by the cycle breaker. (check-in: [94c39d63] user: aku branch: trunk, size: 10025)
[0d583672] part of check-in [85bd219d] Continued work on pass 6. Completed creation of changeset graph (nodes, dependencies), started on topological iteration and breaking cycles. Basic iteration is complete, fiding a cycle ditto. Not yet done is to actually break a found cycle. Extended the changeset class with the necessary accessor methods (getting cset type, successors, time range). Note: Looking at my code it may be that my decision to save the cset order caused this pass to subsume the RevisionTopologicalSortPass of cvs2svn. Check again when I am done. Note 2: The test case (tcl repository, tcl project) had no cycles. (check-in: [85bd219d] user: aku branch: trunk, size: 8244)
[fd1c3960] part of check-in [2a01d504] Started on pass 6, breaking cycles between revision based changesets. Added skeleton files. (check-in: [2a01d504] user: aku branch: trunk, size: 2659) Added