Fossil

Timeline
Login

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

117 check-ins using file tools/cvs2fossil/lib/c2f_pass.tcl version 6faa3b2682

2007-12-04
13:05
Generate CGI replies as separate header and body so that the header can be extended during the construction of the body. check-in: 6af8fdc230 user: drh tags: trunk
02:47
Add the timeline display preferences page with the ability to turn on and off block markup in timeline comments and to limit the length of timeline comments. check-in: ebb2765954 user: drh tags: trunk
01:55
Fix typos in the "concepts.html" document. check-in: ec1fbd7f68 user: drh tags: trunk
01:26
Fix the revert command so that it works from subdirectories. Other minor comment and help-text changes. check-in: 371dd6574c user: drh tags: trunk
2007-12-03
19:17
Send native deltas when cloning. The reduces bandwidth and reduces server load. check-in: 18fbb9c52d user: drh tags: trunk
19:08
Fix the delta computation on download so that it never tries to delta a file that has the same file as both its parent and its child. check-in: 16fbb59b96 user: drh tags: trunk
14:42
Detect delta loops and make at least one member of the loop a phantom. check-in: fb90abe5bd user: drh tags: trunk
00:27
Patch problems with timeline. Need to rethink the whole implementation. check-in: 20553a420c user: drh tags: trunk
2007-12-02
22:30
Addition to the default style sheet to cover the name/value pairs at the top of the vinfo page. Also a bugfix in the report.c code. check-in: dff17229ff user: drh tags: trunk
2007-11-29
00:37
Fix the merge conflict detection. check-in: ba9af9aced user: drh tags: trunk
2007-11-28
14:31
Remove a stray character that snuck unto the rebuild.c source file. check-in: f088412c49 user: drh tags: trunk
2007-11-27
03:30
Fix a bug in the unified diff generator. check-in: 7e9e5fea77 user: drh tags: trunk
2007-11-26
01:33
Begin porting the CVSTrac ticket reporting code over to fossil. The new code is not yet connected into the system. The port is incomplete. check-in: 62f37c9722 user: drh tags: trunk
2007-11-25
21:11
Add ticket configuration editing capability. check-in: 5f3ddcc1b8 user: drh tags: trunk
17:13
Changes to the diff algorithm to put bounds on run-time for very large files with many differences. (This came up on the previous check-in when you try to diff the two versions of sqlite3.c.) check-in: 4c22ae52fd user: drh tags: trunk
16:13
Update SQLite to the latest build from CVS. Add in the FTS3 extension, though it is not yet being used. Additional work toward tickets. check-in: f394d84560 user: drh tags: trunk
02:51
Tweaks of the log output, and reworked internals to expose not only breaking of cycles, but of paths as well. check-in: 54e9b0a143 user: aku tags: trunk
2007-11-24
23:59
More work on ticketing. This is a non-working incremental check-in. check-in: a5e4e1ba96 user: drh tags: trunk
21:28
Progress toward ticket editing. This is an incremental check-in. check-in: d913179b82 user: drh tags: trunk
19:33
Progress toward getting ticketing working. We can enter a new ticket and display it. Cannot yet edit a ticket. check-in: fb358ca492 user: drh tags: trunk
14:06
Documentation updates. check-in: 6680679c2e user: drh tags: trunk
05:31
Created convenience methods to create the human readable repesentation of a changeset and lists of such, and made liberal use of them. check-in: 87cf609021 user: aku tags: trunk
04:40
Bugfix in changeset class. Documented and fixed the SQL statements pulling the successor and predecessor information out of the state. It mishandled the Trunk <-> NTDB transitions. check-in: 184c56327e user: aku tags: trunk
04:34
Bugfix in changeset class. Forgot to update the map from revisions to containing changesets when breaking the internal dependencies of the initial changesets. This affected only the first fragment as all the revisions put into separate fragments where still pointing to the original changeset. This lead to bogus links at the level of changesets, the changeset was seemingly still referencing itself. check-in: 17ec2d682c user: aku tags: trunk
04:29
Bugfix in the changeset class. The index from revisions to containing changesets is not 1:1, but 1:n. While only one revision changeset is possible there can also be zero or more symbol changesets. check-in: 8c9030e3e8 user: aku tags: trunk
04:19
Tweaked log output a bit. Bugfixes: Forgot to propagate the border information into SplitRevisions, and a varname typo. check-in: 6d63634309 user: aku tags: trunk
04:15
Added a number of assertions and must-not-happens with associated log output. Plus some small tweaks, and notes. check-in: eabaea870a user: aku tags: trunk
03:59
Added missing node attributes in the Replace command. check-in: a99d5798f6 user: aku tags: trunk
03:56
Updated passes 6 and 8 for to the changtes in the cycle breaker API (changed signature of save callback). check-in: 7ed2f29d7a user: aku tags: trunk
02:45
The autosync setting understands values like "on", "off", "true", and "false" in addition to 0 and 1. Updates to the documentation. check-in: f9f7cf5684 user: drh tags: trunk
2007-11-23
23:06
Fix a bug in the default header. check-in: 13732d495d user: drh tags: trunk
22:09
New default header and footer and CSS. Add the ability to edit the footer. check-in: 34af72801d user: drh tags: trunk
12:55
Fix a redundancy in the text output of the usage comment on the tag command. check-in: b346a7cf7d user: drh tags: trunk
12:49
Remove obsolete file containing sample ticket configuration script. check-in: 6311ce2ec1 user: drh tags: trunk
05:43
Modified cycle breaker API. Hook for processed nodes now takes the graph as new first argument. Extended API, exposed method for dumping the current state of the graph, including ability to dump a sub graph. check-in: 5f5620fbd2 user: aku tags: trunk
05:41
Extended the dot graph exporter to allow the export of a subgraph specified through a set of nodes. Default is the export of the whole graph, as before. check-in: 86f3319041 user: aku tags: trunk
05:38
Added two more debugging helper applications. One to extract and show a file revision tree, the other to display a dot file generated by the importer during cycle breaking passes. check-in: 64d0019e0f user: aku tags: trunk
2007-11-22
22:55
Add the %w and %W formatting options for internal printf usage. Use these formatting characters to render wiki. Fix additional problems of unterminated wiki on webpage rendering by using %w. (There are probably more problems yet to be discovered and fixed.) check-in: 2859293737 user: drh tags: trunk
22:14
Make sure HTML tags in wiki are terminated in the diff screen too. check-in: d6ad7aa034 user: drh tags: trunk
22:02
Fix the rendering of comments with unclosed block HTML markup in the vinfo page. check-in: 3afcc4388c user: drh tags: trunk
07:24
Added two helper applications which peek into a conversion state and generate graphs from it. Both helpers look at the tree of symbols and show it in toto (symbol tree), or restrict themselves to the branches, aka lines of development (lodtree). check-in: b8c3542172 user: aku tags: trunk
07:22
Reworked the dot export internals a bit to be more general regarding labeling and attribute writing. Updated the cycle breaker to define proper labels. check-in: f284847134 user: aku tags: trunk
07:21
Tweaked the log output for the statistics a bit. check-in: 2630e50610 user: aku tags: trunk
06:03
Fixed the calculation of possible parents for a detached NTDB. Has to be trunk. The symbols were skipped before, causing them to have no parents at all later on, forcing an abort after CollateSymbols. Added some high verbosity log commands for debugging of this area. check-in: 930ec162ce user: aku tags: trunk
04:56
Fixed bug in the initialization of mybranchcode for changesets. check-in: 47e271a448 user: aku tags: trunk
04:21
Continued work on pass 8. Completed the handling of backward branches, file level analysis and splitting them. Extended changesets with the necessary methods to the predecessor data and proper per-revision maps. check-in: e50f9ed55e user: aku tags: trunk
03:47
Continued work on pass 8. Renamed 'retrograde' to 'Backward Branch', should be easier to understand, and completed the predicate testing if a branch changeset is backward or not. check-in: 4f1b60dd16 user: aku tags: trunk
03:33
Continued work on pass 8, added outline for handling of retrograde branches, extended changesets with predicate allowing us to find the branch changesets. check-in: 4866889e88 user: aku tags: trunk
03:21
Extended changeset class with in-memory database mapping from changeset ids to the proper object, and extended the objects with position information and associated accessors. Extended pass 8 to load the commit order computed in pass 6, this is stored in the new position slot of changesets, and an inverted index mapping from position to changeset at that position. check-in: de4cff4142 user: aku tags: trunk
03:11
Modified the API for the construction of changesets a bit, now allowing their construction with the correct id, instead of correcting it later. Updated pass 5 to use this, and fixed bug where the id counter for changesets was left uninitialized, allowing the improper generation of duplicate ids. check-in: 65be27aa69 user: aku tags: trunk
03:03
Reworked the cycle breaker internals, moving the code handling the replacement of a changset (= node) with its fragments into a separate command. Extended the API, exposing the replacement operation, for use by passes. Added debugging code showing the set of consumable nodes for each iteration. check-in: ad7d5c2d10 user: aku tags: trunk
02:58
Moved the functionality for splitting a changeset based on the sets of revisions for the fragments to be into a separate command, and into the changeset class, for use outside of changeset links. check-in: 59207428e2 user: aku tags: trunk
01:53
Fix some compiler warnings. Comment changes on non-functioning code in tkt.c. check-in: 2a707334c9 user: drh tags: trunk
2007-11-21
16:03
Fix a bug in the unified diff generator. check-in: 4db464a748 user: drh tags: trunk
13:52
Append the pathname to the login cookie name so that separate cookies are used for each server. check-in: d2b4469934 user: drh tags: trunk
12:21
Attach login cookies to the root path of the server, so that multiple servers can coexist on the same site. check-in: 68a202e101 user: drh tags: trunk
04:44
Fixed typo in cycle breaker logging. Extended pass 8, wrote the outline with all the relevant custom callbacks. check-in: 1f60018119 user: aku tags: trunk
04:36
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: 2a0ec504c5 user: aku tags: trunk
04:11
Cycle breaker, API extension. Added a hook to process the graph between setup and regular consummation. This will be used by pass 8. check-in: 1e177a4c91 user: aku tags: trunk
04:05
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: 2cf0462b82 user: aku tags: trunk
03:46
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: d58423cdc4 user: aku tags: trunk
03:19
Try again to get the Login/Logout menu name correct. check-in: f0a9e3b523 user: drh tags: trunk
03:17
Get the name of the Login/Logout menu option right. check-in: bd667b1940 user: drh tags: trunk
03:01
Render the header of every page using subscript. Add a setup page that for editing that subscript. check-in: 555911dff5 user: drh tags: trunk
2007-11-20
23:54
Add the SbS_Render() interface for rendering HTML with embedded subscript. check-in: e29abeff80 user: drh tags: trunk
06:59
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: 7f15be9078 user: aku tags: trunk
2007-11-18
20:48
Add a more advanced commit-hook mechanism that allows us to specify multiple procedures in a particular order prior to commit. Continuing work toward getting tickets going. check-in: d5e7891b07 user: drh tags: trunk
2007-11-17
17:48
Continuing work on the infrastructure for tickets. check-in: 8c96ed62f5 user: drh tags: trunk
04:39
Added an option "--batch" with which the user can disable the feedback display standard to interactive use. check-in: 4e7dd05fc6 user: aku tags: trunk
00:29
Merge aku's CVS import changes into the main line. Fix a small bug in diff.c. check-in: 38b967dcf5 user: drh tags: trunk
2007-11-16
08:32
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: 96b7bfb834 user: aku tags: trunk
06:55
Moved out-of-place state declarations to the proper phase (setup, not run). check-in: ce7fb48e8c user: aku tags: trunk
06:53
Added skeleton of pass 8, the final pass for the breaking of dependency cycles. This pass will handle the remaining cycles crossing revision and symbol changesets. check-in: e7c805f137 user: aku tags: trunk
06:51
Bugfix. Destroy graph object after use. check-in: 7b3928681e user: aku tags: trunk
04:17
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: 770a9b576a user: aku tags: trunk
03:59
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: de64c94f54 user: aku tags: trunk
03:54
Bugfix. When I introduced the 'revisionbranchchildren' table to pass 2 I forgot to update pass 4 as well. Added code to drop the excluded revisons from this table as well, as either parent of branches, or branch child of some other revision. check-in: 2516f4a56d user: aku tags: trunk
03:52
Bugfix. In pass 5, loading the changesets used the type codes instead of the type names. Modified the SQL selecting the data to return the proper names. check-in: 341d96be21 user: aku tags: trunk
2007-11-15
07:17
Added skeleton files for pass 7, the breaking of dependency cycles over symbol-based changesets. check-in: 258366a37a user: aku tags: trunk
2007-11-14
05:26
Added note regarding 'RevisionTopologicalSortPass', which is not a separate pass for us, but part of pass 6, breaking cycles over revision changesets. check-in: f631d438b4 user: aku tags: trunk
05:11
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: 94c39d6375 user: aku tags: trunk
05:08
Fixed handling of project objects when persisting them. Fill the project map. This is needed if the pass is not skipped. For the skip case we already initialize the project map when 'load'ing from the state. check-in: 67600f777b user: aku tags: trunk
2007-11-13
07:22
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: 85bd219d0b user: aku tags: trunk
05:09
Reworked the in-memory storage of changesets in pass 5 and supporting classes, and added loading of changesets from the persistent state for when the pass is skipped. check-in: 24c0b662de user: aku tags: trunk
2007-11-11
00:08
Started on pass 6, breaking cycles between revision based changesets. Added skeleton files. check-in: 2a01d50430 user: aku tags: trunk
2007-11-10
23:44
Rewrote the algorithm for breaking internal dependencies to my liking. The complex part handling multiple splits has moved from the pass code to the changeset class itself, reusing the state computed for the first split. The state is a bit more complex to allow for its incremental update after a break has been done. Factored major pieces into separate procedures to keep the highlevel code readable. Added lots of official log output to help debugging in case of trouble. check-in: 08ebab80cd user: aku tags: trunk
20:40
Oops. pass 5 is not complete. Missed the breaking of internal dependencies, this is done in this pass already. Extended pass _2_ and file revisions with code to save the branchchildren (possible dependencies), and pass 5 and changesets with the proper algorithm. From cvs2svn, works, do not truly like it, as it throws away and recomputes a lot of state after each split of a cset. Could update and reuse the state to perform all splits in one go. Will try that next, for now we have a working form in the code base. check-in: 95af789e1f user: aku tags: trunk
07:46
Completed pass 5, computing the initial set of changesets. Defined persistent structure and filled out the long-existing placeholder class (project::rev). check-in: 5f7acef887 user: aku tags: trunk
05:34
Started on pass 5, computing the initial approximate set of project level revisions, aka 'ChangeSets'. Skeleton of the pass added. check-in: 54d1e3537e user: aku tags: trunk
2007-11-09
06:42
Added note about why we omit cvs2svn's sorting passes. check-in: 959192d4b7 user: aku tags: trunk
06:28
Moved the paranoid integrity checks of pass 2 into a separate package for use by other passes, and changed pass 4 to also run these checks, albeit in a (slightly) relaxed form. See the comments at the point of call for the reason. This completes pass 4. check-in: 131f051880 user: aku tags: trunk
2007-11-07
07:46
Opcode synchronization reworked, optype table is master from which the in-memory array is loaded. check-in: e45f47ec4a user: aku tags: trunk
06:22
Pass 4 nearly completed. Rewrite symbol mutation, completed adjustment of symbol parents, added symbol refinement (noop or not flags). Now only missing piece is replication of the pass 2 paranoia checks. Note: Checks in the adjustment of parents are a bottleneck. May need indices, or something we can do in memory. check-in: 37734390ca user: aku tags: trunk
06:19
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. check-in: 7ab490df24 user: aku tags: trunk
2007-11-06
08:05
Continued work on pass 4. Now propagating the project level information about prefered parents down to the file level tags. Same for the file level branches is not yet done. check-in: 3a530ef947 user: aku tags: trunk
07:14
Continued work on pass 4. Added code bringing the file level symbol data into compliance with the project level symbol types, converting tags to branches and vice versa. check-in: ffafc0bd65 user: aku tags: trunk
06:47
Continued work on pass 4. Implemented the deletion of excluded symbols and all parts referencing them. The complex part is the regrafting of NTDB revisions should a NTDB branch be excluded. This is like 'GraftNTDB2Trunk' in 'file' when excluding everything but the trunk. check-in: 69bf6ab99b user: aku tags: trunk
04:57
Started on pass 4, 'FilterSymbols'. Skeleton. check-in: 11e5d7ce42 user: aku tags: trunk
04:55
Extended comment. check-in: d314894b9a user: aku tags: trunk
04:53
Fix in pass 3, do not compute prefered parents for the excluded symbols. Exclude them from the final check as well due to this. check-in: 4c8a5a44af user: aku tags: trunk
04:39
Completed pass 3, CollateSymbols. Added code determining for each symbol the prefered parent from all possible parents. This is the symbol with the lowest id among the set with the maximum number of occurences as a parent. check-in: efc78b7a42 user: aku tags: trunk
2007-11-05
09:04
Extended options processing to handle --exclude, --force-tag, and --force-branch options. Extended project::sym class with in-memkory databases to hold the option information and replaced the 'UserConfig' placeholder with the actual code using the new databases to determine symbol types based on user-requests. Extended the pass itself with code performing various checks on the results of type determination, partially paranoia, partially to find genuine bad requests (excluding symbols with unexcluded blockers, making a symbol with commits on it a tag, ...). NYI: Computation of the prefered parent for all symbols. check-in: 7eaa420a23 user: aku tags: trunk
2007-11-02
06:06
Continued work on pass 3, added code to determine the type of symbols based on the tag-, branch-, and commit-counts. Hook for handling data coming from the option processoris present (UserConfig), but only as a placeholder. check-in: f888f06fe3 user: aku tags: trunk
04:29
Skeleton for pass 3 added, collating the symbols. check-in: 6d4eb24738 user: aku tags: trunk
04:26
Added code for the loading of pass II data (currently only the smybols) from the state when pass II is skipped. check-in: c3d5104084 user: aku tags: trunk
04:24
Fixed typos. check-in: 77904c1f51 user: aku tags: trunk
2007-10-31
03:45
Milestone I reached (To save the fundamental repository structure into a sqlite database). check-in: cb4d44d60e user: aku tags: trunk
03:44
Added code creating aggregate symbol statistics. This completes pass 2 (CollRev). check-in: 6f8667b03e user: aku tags: trunk
2007-10-27
04:59
Replaced the ASCII art showing entity links with dia'grams and gif images derived from them. Especially useful when trying to understand the paranoia checks. check-in: 831e8f360d user: aku tags: trunk
2007-10-26
06:53
Added another consistency check, and revised the comments to use the more exact terms for the various relationships. check-in: 70d4a81162 user: aku tags: trunk
06:11
Fixed one of the cross-reference checks. check-in: 2e7cbb2829 user: aku tags: trunk
05:29
Added lots of checks looking for inconsistent references between the various objects, mainly revisions. check-in: 2434ad3bfe user: aku tags: trunk
05:28
Added saving of the fundamental symbol information (project level). check-in: 1deb3786aa user: aku tags: trunk
2007-10-25
05:16
Fixed saving of authors, log messages, meta data. This was wrong since revision [99e165d5c4], when the id databases were introduced. Simplified meta saving due to changed trunk coding (no NULL). check-in: 89e9b357ed user: aku tags: trunk
05:14
Formatting change, code alignment. check-in: 7375ebb988 user: aku tags: trunk
05:13
Changed the coding of trunk symbols. Using NULL makes for difficult comparisons later when doing integrity checks. Each trunk now has a regular unique id as a symbol. Added documentation to the table definitions, about references, constraints, etc. check-in: 2c08006d9d user: aku tags: trunk
2007-10-24
14:44
Extended pass manager to keep timing data for the executed passes and show them after completion of all passes. check-in: 05f9c95573 user: aku tags: trunk