Login
Timeline
Login

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

50 most recent check-ins that include changes to files matching 'f-apps/*'

2024-10-12
18:37
Part 1 of N of some restructuring of the fcli_t struct: consolidate fcli.clientFlags and fcli.config into fcli.config. check-in: 2f7bf3f7d0 user: stephan tags: trunk
15:22
Initial work on fcli_setup_v3(). Not yet sure if this will be a real thing. Closed-Leaf check-in: 5789a03da2 user: stephan tags: fcli_setup_v3
2024-09-29
12:10
Second part of --help text correction in f-annotate, as reported in [9305e3173f]. check-in: 60c6beadb0 user: stephan tags: trunk
12:04
Minor --help text correction in f-annotate, as reported in [9305e3173f]. check-in: 28cf441d61 user: stephan tags: trunk
2024-09-28
00:31
Do not clear the fsl_cx error state in the db hooks, as that hides propagating info like a merge failure report. check-in: 08ed83fecc user: stephan tags: trunk
2024-09-26
16:27
EOL cleanups and fix an age-old stack overwrite discovered via Martin's QNX. Edit: the stack-overwrite of 18 bytes traces back to [896ea2a01b33de25]. check-in: f6812e43bd user: stephan tags: trunk
2024-09-24
21:24
Comment cleanups. check-in: 5861c30dce user: stephan tags: trunk
21:13
Add --private flag to f-ci. It seems to work, too. check-in: f511d7e632 user: stephan tags: trunk
15:58
Remove some stray debug output added in [71fbbe959b34]. check-in: 57771ce4fc user: stephan tags: trunk
15:47
Remove some auto.def debug output and add a comment explaining the new test in f-sanity.c. check-in: b096fe0978 user: stephan tags: trunk
15:43
Extend fsl_mtime_of_manifest_file() to be able to return the mtime of any artifact type if given a file ID of 0 or less. Simplify its internal impl a bit. check-in: 71fbbe959b user: stephan tags: trunk
2024-09-23
10:43
include limits.h header for LONG_MAX on darwin While here, change buf->cursor precondition comparison check to ensure it is not greater than buf->used. It may be an unreachable state but we must guard it nonetheless. And expand getdelim() regress by covering the empty or end-of-buffer precondition path, and the no matching delimiter found in the stream path. check-in: 322452cb8b user: mark tags: trunk
2024-09-22
15:38
implement fsl_buffer_get{delim,line}() and regress test This API provides the same semantics as POSIX.1-2024 getdelim(3), which the fsl_buffer structure conveniently facilitates. A new regress test case is also added to f-sanity. Briefly discussed in /chat with Stephan. https://pubs.opengroup.org/onlinepubs/9799919799/functions/getdelim.html check-in: efb25dec6f user: mark tags: trunk
2024-09-21
01:27
zap deadstore via missing break statement in switch block I suspect this fallthrough attribute was incorrectly added to silence a compiler warning that was in this case warranted. We don't want to clobber c; `c = offset` is correct for SEEK_SET. Incidentally, this routine's regress test was not failing the SEEK_SET case[0] because bin->cursor is at 0 so the fallthrough to the SEEK_CUR case[1] equates to `c = 0 + offset`. As such this commit also reorders test cases for a more rigorous regresssion test of fsl_buffer_seek(). [0]: assert(0==fsl_buffer_seek(&bin, 0, FSL_BUFFER_SEEK_SET)); [1]: case FSL_BUFFER_SEEK_CUR: c = (int64_t)b->cursor + offset; break; check-in: 5d2f636c0c user: mark tags: trunk
2024-09-16
21:26
Merge db-hooks branch into trunk. Summary: eliminate the fsl_db class's hard dependency on the fsl_cx class via introduction of hooks which fsl_cx installs in its db instance. check-in: 8884282b35 user: stephan tags: trunk
20:34
Remove the fsl_db::f (fsl_cx*) member. This touches a lot of code lines but was not anywhere near as invasive as expected. check-in: f00a5025f5 user: stephan tags: db-hooks
17:06
More work on the db hooks. check-in: 12b3603cd3 user: stephan tags: db-hooks
12:21
Add --date-override and --allow-older flags to f-ci. check-in: 580ec03020 user: stephan tags: trunk
2024-09-14
13:54
Merge build-rework branch into trunk. Summary: reduce the complexity of the build considerably (while, admittedly, also reducing its flexibility, but that's okay). check-in: ecf32ada1a user: stephan tags: trunk
11:30
Update subdir makefiles for the build rework. check-in: 07f62bbf5e user: stephan tags: build-rework
2024-09-13
14:04
Add f-apps/f-test-canonical-name.c. check-in: 8a50b9b6e7 user: stephan tags: trunk
13:56
Add f-ls --checkouts flag to show open checkouts to the given repository, with the caveat that checkouts opened via different names for the repo (e.g. via dir symlinks) are not resolved. check-in: dec80338e1 user: stephan tags: trunk
12:57
Document an obscure, difficult-to-trigger misinteraction between revert/merge ops (fixing it is todo, once a good solution is found). Fix fsl_ckout_has_changes() to return true also when vfile.deleted is true and restrict it to matching only when vid=current-ckout-version to cover a wildly hypothetical case of multiple distinct vfile.vid values being in the table. check-in: 00377f482a user: stephan tags: trunk
2024-09-12
14:11
Remove an extraneous internal-use-only header from f-import-blob.c. check-in: a371058aeb user: stephan tags: trunk
2024-08-01
11:26
When reverting files, report those which were modified only via a merge as reverted (it was formerly not reporting those via the callback). Adjacent cleanups and a potential resource leak fix in two as-yet-have-never-happened error cases. See code comments, in particular in fsl_ckout_revert(), for why this fix is not as satisfactory as it should be. check-in: 888c0dfe9a user: stephan tags: trunk
2024-07-23
10:26
Fix a bug in fsl_checkin_calc_F_card2() which caused a change of (only) the exec bit to go un-marked in the manifest (the file retained its old exec-bit status, but otherwise no harm done). check-in: 4243008e11 user: stephan tags: trunk
2024-07-03
09:13
Remove some superfluous warnings from f-update and f-merge. check-in: 8861e4557f user: stephan tags: trunk
2024-06-29
22:45
Add --dry-run/-n flag to f-import-blob.c. check-in: a5cfa53b2e user: stephan tags: trunk
22:30
Fix the aforementioned double-free bug. Facepalm. check-in: b25fae6fbe user: stephan tags: trunk
22:15
Minor cleanups in the previous checkin. Import forum repo into this repo, but the aforementioned double-free bug is still lingering. check-in: e62167460d user: stephan tags: trunk
22:02
Add a test app to import raw blobs, initially for use with importing the libfossil forum repo into the main libfossil forum. In the process, discovered, but have not yet resolved, a double-free bug via fcli_shutdown()'s cleanup of the argv memory. check-in: 44f248ffb4 user: stephan tags: trunk
2024-06-20
11:12
Minor test code cleanup and update license header copyright years. check-in: 6b98eb601b user: stephan tags: trunk
10:45
Add f-apps/f-test-ckout-db-search.c to test for a bug in fsl_ckout_db_search() discovered by Przemysław Kamiński. Fixing the bug is the next step. check-in: f73f305f22 user: stephan tags: trunk
2024-06-16
17:06
EOL whitespace cleanups. check-in: 30b6b94913 user: stephan tags: trunk
2024-04-27
11:51
Apply the case-handling change from [0e50f798e6a5] to f-rename.c, analog to [fossil:859b00b7|upstream 859b00b7]. Edit: this change and the related one it links to should ideally be done transparently in the library, but retrofitting it into those two places is beyond my current level of ambition. Patches to that effect would be welcomed! check-in: 070f359a1e user: stephan tags: trunk
2024-04-16
20:50
Add a very basic test script for SEE-based builds and remove the -W flags added for SEE sources, as those warnings were fixed upstream. check-in: 740e55b047 user: stephan tags: trunk
08:22
Initial support for repositories encrypted using the SQLite Encryption Extension (SEE). The interface is still subject to change but currently seems reasonably sane. Milestone: we can create, open, work with, and check in to repositories encrypted with SEE, but it's tedious to have to pass the encryption key for every command invocation using the f-... apps. check-in: 661421ef0c user: stephan tags: trunk
07:40
Correct f-ciwoco to not force dry-run mode. check-in: 0ad6c888be user: stephan tags: sqlite-see
2024-04-10
22:26
Merge current trunk into sqlite-see branch. check-in: d0c7ccf526 user: stephan tags: sqlite-see
22:03
Port in [fossil:f1f7e27e0cdb8943|upstream f1f7e27e0cdb8943], a routine which ensures that a given filename matches the case it is stored in in the filesystem. Use that in f-add.c, where it's applied even for case-sensitive filesystems (primarily as a test for that routine). check-in: 0e50f798e6 user: stephan tags: trunk
2024-03-28
11:50
More work on close-at-checkin, but this is turning into a rat's nest of side effects and does not address the partial-checkin case, so shelving this idea for the time being. Unrelated: this checkin is showing src/checkin.c as a full-file diff with both fossil(1) diff and f-vdiff, whereas doing a diff --from prev shows the expected changes only. Shrug. Closed-Leaf check-in: 075379b921 user: stephan tags: ci-close
09:49
Add new fsl_checkin_opt::writeCheckoutVersion (default=true) as a way to suppress automatic rewriting of checkout version to match the new checking version, for use with... Add f-cli --close and --close-with-comment flags which enable checking in and closing at the same time. When doing so, do _not_ update the checkout to the newly branched-and-closed version. Edit: this messes up the checkout state by setting the vfile state to match the new branch instead of the current branch. Need to investigate that further. check-in: 1f286fb52a user: stephan tags: ci-close
2023-11-23
13:07
fix 'f-delta -a' cli option clobbering so that the delta in arg1 actually gets applied to the file in arg2 and the result written to stdout rather than outputting the delta between arg1 and arg2 as we do when no option is passed to 'f-delta' check-in: 72f05d4c41 user: mark tags: trunk
2023-06-20
13:48
Remove some stray end-of-line whitespace. check-in: ab6ce6037c user: stephan tags: trunk
13:44
Remove some stray whitespace. check-in: 9c2357b976 user: stephan tags: trunk
2023-06-17
08:27
Minor text updates in f-update output. check-in: f9ba9cc02f user: stephan tags: trunk
2023-04-26
16:24
Merge no-common-ancestor branch into trunk. check-in: 0657571903 user: stephan tags: trunk
16:23
Remove the no-common-ancestor check from the merge algorith, for conformance with fossil(1)'s new behavior. Closed-Leaf check-in: 3ca3706652 user: stephan tags: no-common-ancestor
2023-04-19
04:03
Add more missing f(void). check-in: 43181beb49 user: mgagnon tags: trunk
03:35
Cherrypick changes from the no-common-ancestor branch which are not strictly relevant to that change. check-in: 1ee281f8ed user: stephan tags: trunk