History of tools/cvs2fossil/lib/c2f_pbreakrcycle.tcl
2007-12-02
| ||
23:47:45 | [9b0d3d5360] part of check-in [e288af3995] 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. (By: aku on 2007-12-02 23:47:45) [diff] [annotate] | |
20:04:40 | [3c073e957a] part of check-in [00bf8c198e] 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. (By: aku on 2007-12-02 20:04:40) [diff] [annotate] | |
2007-11-30
| ||
03:57:19 | [0b1951c1de] part of check-in [b42cff97e3] 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. (By: aku on 2007-11-30 03:57:19) [diff] [annotate] | |
2007-11-29
| ||
09:16:33 | [4ea6d5327b] part of check-in [80b1e8936f] Renamed state table 'csrevision' to 'csitem' to reflect the new internals of changesets. Updated all places where it is used. (By: aku on 2007-11-29 09:16:33) [diff] [annotate] | |
2007-11-27
| ||
04:26:56 | [630bffc4ad] part of check-in [8c6488ded2] 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). (By: aku on 2007-11-27 04:26:56) [diff] [annotate] | |
02:37:51 | [685d23fe9c] part of check-in [bf83201c7f] Outline for more integrity checks, focusing on the changesets. (By: aku on 2007-11-27 02:37:51) [diff] [annotate] | |
2007-11-25
| ||
07:54:09 | [f27a20d7ed] part of check-in [b679ca3356] Code cleanup. Removed trailing whitespace across the board. (By: aku on 2007-11-25 07:54:09) [diff] [annotate] | |
03:00:50 | [21b55594db] part of check-in [b6b7ff79cc] Moved the parts taken over by the top. sort passes out the breaker passes, and renumbered them (comments). (By: aku on 2007-11-25 03:00:50) [diff] [annotate] | |
2007-11-24
| ||
05:31:30 | [e139c81d89] part of check-in [87cf609021] Created convenience methods to create the human readable repesentation of a changeset and lists of such, and made liberal use of them. (By: aku on 2007-11-24 05:31:30) [diff] [annotate] | |
03:56:46 | [956cfdff4d] part of check-in [7ed2f29d7a] Updated passes 6 and 8 for to the changtes in the cycle breaker API (changed signature of save callback). (By: aku on 2007-11-24 03:56:46) [diff] [annotate] | |
2007-11-21
| ||
04:36:13 | [9bec773f1f] part of check-in [2a0ec504c5] 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. (By: aku on 2007-11-21 04:36:13) [diff] [annotate] | |
04:05:53 | [1228cf6726] part of check-in [2cf0462b82] 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. (By: aku on 2007-11-21 04:05:53) [diff] [annotate] | |
03:46:22 | [d4b18e168b] part of check-in [d58423cdc4] 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. (By: aku on 2007-11-21 03:46:22) [diff] [annotate] | |
2007-11-20
| ||
06:59:03 | [4f907e0102] part of check-in [7f15be9078] 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. (By: aku on 2007-11-20 06:59:03) [diff] [annotate] | |
2007-11-17
| ||
00:29:42 | [030100362a] part of check-in [38b967dcf5] Merge aku's CVS import changes into the main line. Fix a small bug in diff.c. (By: drh on 2007-11-17 00:29:42) [annotate] | |
2007-11-16
| ||
08:32:40 | [030100362a] part of check-in [96b7bfb834] 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. (By: aku on 2007-11-16 08:32:40) [diff] [annotate] | |
06:55:58 | [95b71ab788] part of check-in [ce7fb48e8c] Moved out-of-place state declarations to the proper phase (setup, not run). (By: aku on 2007-11-16 06:55:58) [diff] [annotate] | |
04:17:30 | [7f124d81b4] part of check-in [770a9b576a] 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. (By: aku on 2007-11-16 04:17:30) [diff] [annotate] | |
03:59:21 | [bcbf738b02] part of check-in [de64c94f54] 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). (By: aku on 2007-11-16 03:59:21) [diff] [annotate] | |
2007-11-14
| ||
05:11:56 | [b471ab73ff] part of check-in [94c39d6375] 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. (By: aku on 2007-11-14 05:11:56) [diff] [annotate] | |
2007-11-13
| ||
07:22:35 | [0d5836726f] part of check-in [85bd219d0b] 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. (By: aku on 2007-11-13 07:22:35) [diff] [annotate] | |
2007-11-11
| ||
00:08:46 | [fd1c396037] part of check-in [2a01d50430] Started on pass 6, breaking cycles between revision based changesets. Added skeleton files. (By: aku on 2007-11-11 00:08:46) [annotate] |