Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
85 check-ins using file f-apps/f-wiki.c version dac0faf09e
2022-04-21
| ||
10:58 | Ported in [fossil:c92fb60ba9e1829a], which adds the "start:" prefix option for fsl_sym_to_rid() lookups. check-in: bfd34748e6 user: stephan tags: trunk | |
2022-04-14
| ||
05:06 | Fixed a segfault in f-ci and f-update caused by variadic args misuse. check-in: 3f43f99441 user: stephan tags: trunk | |
2022-04-11
| ||
03:17 | fsl_rc_cstr() now returns NULL, instead of a dummy string, if passed an unknown result code. This change is based on experience in another source tree where we use an identical API, and will eventually permit client code to install a fallback handler to provide its owns strings for unknown-to-libf codes. check-in: fcb01c8788 user: stephan tags: trunk | |
03:07 | f-ci now attempts to prohibit checkins to non-leaf versions and adds the --fork flag to bypass that check. Added FSL_RC_WOULD_FORK because no other existing result code seems appropriate for reporting this case. check-in: b8c029741a user: stephan tags: trunk | |
2022-04-10
| ||
04:57 | Reversed a bit of double-negative logic in fsl__deck_F_seek_base(). check-in: b13966c8ce user: stephan tags: trunk | |
00:17 | Reimplemented fcli_sync() with a more flexible interface, including the ability to suppress the system()'d command's output, so fnc can potentially use this without hosing the screen state. f-update now does a pull-sync before updating if autosync is on. check-in: 0afca69968 user: stephan tags: trunk | |
2022-04-09
| ||
21:50 | Added an f-sanity test for the FSL_RC_LOCKED case of fcli_sync(). check-in: dcadf02e6c user: stephan tags: trunk | |
21:36 | Moved the internal fsl_cx cache-clearing to the public fsl_cx_caches_reset() so that it can be used like fcli does (after shelling out an external app which might change the db). Fixed a deck F-card search bug introduced by the cache reset (thank goodness an existing unit test tripped over that). check-in: 84154036a0 user: stephan tags: trunk | |
08:19 | Taught fcli_sync() to fail with the new FSL_RC_LOCKED code if a transaction is opened, as remote sync cannot succeed in that case due to the libf client holding a transaction open (i.e. a write lock). check-in: 3be18124f5 user: stephan tags: trunk | |
08:08 | f-ci now uses fossil(1) for autosync support. Kinda backwards, but it's a usability improvement. It honors both the fcli.autosync boolean setting and fossil's autosync, prefering the former. check-in: 44fcc2f7aa user: stephan tags: trunk | |
07:41 | Ported fsl_system() from fossil and added fcli_sync(). check-in: 5fb49bf7c4 user: stephan tags: trunk | |
06:51 | Fixed some symbol names introduced via copy/paste porting. check-in: 9861bd2474 user: stephan tags: trunk | |
06:49 | Ported in infrastructure for tokenizing PATH-style strings, added fsl_pathfinder_split() to quickly populate a fsl_pathfinder() from path strings, and added fcli_fossil_binary() to find the system's fossil binary. check-in: f15f9d8414 user: stephan tags: trunk | |
2022-04-06
| ||
12:10 | Swapped two lines to fix a potential mis-rollback in fsl_ckout_rename(). check-in: 5e640a2f89 user: stephan tags: trunk | |
2022-04-03
| ||
16:17 | Fixed a bug in fsl_ckout_rename() where one part of the vfile table update was missing, triggering an assert in f-vdiff after a rename. Now, after all these years, i have come to understand why Richard chose to (update vfile set origname=pathname where origname is NULL). Always thought that was an odd design decision, but now grasp what its purpose is. check-in: 7cc1faa141 user: stephan tags: trunk | |
2022-04-02
| ||
08:59 | Expanded an assert() in f-vdiff which revealed what might be a bug in/via f-rename. check-in: daa08e411b user: stephan tags: trunk | |
2022-04-01
| ||
09:38 | Latest upstream fnc. check-in: 3876fab927 user: stephan tags: trunk | |
2022-03-26
| ||
15:04 | ncurses diff view: treat a NUL byte input as a 'q' (quit) to work around the problem that (cat /dev/zero | f-vdiff -f n) hangs the app entirely. Reported by Mark in /chat. check-in: 8683c5b248 user: stephan tags: trunk | |
2022-03-16
| ||
12:52 | Latest upstream fnc. check-in: 3c54972833 user: stephan tags: trunk | |
2022-03-10
| ||
12:27 | Fixed a compiler warning triggered on an Alpine Linux build. check-in: 6f8334af0b user: stephan tags: trunk | |
08:02 | Upstream fnc [fnc:a97a6075b8099b662]. check-in: 6417598cf2 user: stephan tags: trunk | |
04:50 | Minor constness tweaks and removed a superfluous NULL arg check. check-in: 420a8985e1 user: stephan tags: trunk | |
03:38 | For the fsl_ckout_rename()-related bits, rename the fsMvFile option to doFsMv. check-in: b85863a91d user: stephan tags: trunk | |
2022-03-09
| ||
04:04 | Completely reimplemented fsl_ckout_rename() using fossil(1)'s impl as a basis. The code is now arguably more legible and is more behavior-compatible with fossil. check-in: bc7bfb06e3 user: stephan tags: trunk | |
2022-03-08
| ||
23:22 | Ported in [fossil:5e34c9982858163d | upstream patch 5e34c9982858163d]. check-in: 4e6d851edd user: stephan tags: trunk | |
07:07 | Refactored fsl_ckout_rename() to use an options object and callback. Discovered a discrepancy in how renames are handled compared to fossil(1) when the source is a single dir name: fossil includes that dir name in the target whereas we do not. That might be subject to change, pending /chat discussions. check-in: 80c84abba6 user: stephan tags: trunk | |
07:00 | Removed some dead code. check-in: ded6e51294 user: stephan tags: trunk | |
07:00 | Do not clear fsl_cx error state in fsl__ckout_version_fetch(), as that can lead to a rollback eliminating any pending error message. check-in: 0a11ddd8bc user: stephan tags: trunk | |
05:46 | Added f-rename. This impl revealed how/why fsl_ckout_rename() needs to be refactored to take a callback for reporting exactly which files get renamed, but that will have to wait until the muse strikes. check-in: ef1ceb0a0c user: stephan tags: trunk | |
05:03 | Initial (somewhat unsightly) impl of refactoring fsl_ckout_rename() to be able to handle origin filenames which are SCM-known directories. i.e. fsl_ckout_rename() can now move directory foo/bar, recursively, to a new directory. check-in: 52318ca911 user: stephan tags: trunk | |
04:49 | Added long-missing client/GNUmakefile. check-in: afed3698bb user: stephan tags: trunk | |
2022-03-07
| ||
01:44 | Added fsl_ckout_rename_revert() and unit tests. check-in: aa34eddd93 user: stephan tags: trunk | |
01:09 | Changed semantics of fsl_db_get_buffer() to _append_ to the target buffer instead of replacing its contents, as that's generally more often the capability i want and the old semantics simply require calling fsl_buffer_reuse() on the target first. check-in: 27f4feac07 user: stephan tags: trunk | |
2022-03-05
| ||
11:18 | Latest upstream fnc. check-in: 818307debb user: stephan tags: trunk | |
10:09 | Added fsl_ckout_rename(), the core impl of a rename/move operation for SCM-managed files. check-in: 4d2e43a8f6 user: stephan tags: trunk | |
10:08 | Added protection against a corner-case condition to the previous checkin. check-in: fdebf174bb user: stephan tags: trunk | |
10:02 | When a fossil-managed db handle does a rollback, reload the cached ckout version state, else it can get out of sync. This is an age-old bug, but was just discovered when it broke some new f-sanity tests. check-in: a0f3423462 user: stephan tags: trunk | |
2022-03-04
| ||
16:14 | Ported over Daniel D's root:XYZ tag lookup performance improvements from [fossil:/timeline?r=start-of-branch-cte]. check-in: 51863fd402 user: stephan tags: trunk | |
05:37 | Latest upstream fnc. check-in: 1f0c719961 user: stephan tags: trunk | |
2022-02-26
| ||
22:47 | Latest upstream fnc.c check-in: 8520337095 user: stephan tags: trunk | |
21:01 | Re-enabled the historical 'touch' feature of mkcdep.c to work around some otherwise weak deps handling when headers change. On the one hand, this improves rebuilding for header changes. On the other, it causes the deps files to get rebuilt twice in a row at times. check-in: d8a6b8d0c6 user: stephan tags: trunk | |
2022-02-24
| ||
11:19 | mkcdep.c no longer adds "." to the -I path by default because that backfires with generation of the amalgamation header, causing a circular dep because the amalgamation header shares a name with a non-amalgamation header. check-in: f59415334b user: stephan tags: trunk | |
2022-02-18
| ||
16:36 | Back-ported [fossil:868d1608382a9bb1] for (cosmetic) diff alignment improvements. check-in: 57f6086d58 user: stephan tags: trunk | |
16:25 | Improved the big/little-endian detection in mkcdep.c by taking advantage of a gcc-ism which exists for that purposes. check-in: 59dea46ad9 user: stephan tags: trunk | |
2022-02-15
| ||
14:46 | As per Stephan's suggestion in /chat, pluralise ignoreRid(s). check-in: 36b2799c8e user: mark tags: dev-blame-ignore | |
14:33 | Enable ignoring specific commits when annotating file. Add flag to annotate options struct to ignore all merge commits. Similarly, provide array to assign rid values of specific versions to ignore specified commits. If either are set, any changed lines from the ignored version(s) will be annotated from the previous commit in the file history. check-in: 79fd090adb user: mark tags: dev-blame-ignore | |
2022-02-14
| ||
10:06 | Replaced broken big-/little-endian determination in mkcdep.c. check-in: e71174b745 user: stephan tags: trunk | |
2022-02-05
| ||
05:37 | fsl_foci() now uses the fsl_cx instance associated with its db handle instead of fetching it from fcli. check-in: 746d6bb38a user: stephan tags: trunk | |
05:04 | Expanded the foci docs a bit. check-in: df374a82ef user: stephan tags: trunk | |
04:51 | Merged in wip-foci branch, a straight port of fossil's files_of_checkin sqlite virtual table. check-in: b78e11a588 user: stephan tags: trunk | |
04:45 | Got foci working and added a basic test for it in f-sanity.c. Closed-Leaf check-in: c33ddf9c91 user: stephan tags: wip-foci | |
2022-02-04
| ||
14:22 | Initial port of Fossil's files-of-checkin (foci) vtable. First pass of porting fossil(1) src/foci.c to libfossil; it's pretty much a 1:1 port using libf's ADTs. This builds, but the implementation isn't used anywhere so that's not a surprise. There is no test yet either, so branching this for further review. check-in: 677d51061d user: mark tags: wip-foci | |
2022-01-30
| ||
13:50 | Documented a bug/shortcoming in f-vdiff. check-in: 725861fdf6 user: stephan tags: trunk | |
2022-01-27
| ||
14:42 | Re-did C dependencies generation to use tools/mkcdep.c instead of GCC. MUCH faster and less kludgy. check-in: 236c0f8864 user: stephan tags: trunk | |
13:02 | Latest upstream fnc. check-in: e7795f680c user: stephan tags: trunk | |
10:08 | Removed some dead code from wh-common.tcl. check-in: 74d87e19f4 user: stephan tags: trunk | |
2022-01-26
| ||
18:04 | Corrected an argument type in fsl_branch_of_rid() which broke variadic arg handling in that function on platforms where fsl_int_t and fsl_id_t are different sizes. check-in: bcbfb21894 user: stephan tags: trunk | |
2022-01-24
| ||
07:17 | Corrected f-vdiff's file-mtime checks of local-checkout files to canonicalize the filename so that it works when called from a subdir of the checkout. check-in: 4da4e6a3f4 user: stephan tags: trunk | |
03:44 | Ported in upstream [fossil:8cd73dda3d10ff143740] diff generation tweaks. check-in: 75349fc193 user: stephan tags: trunk | |
2022-01-23
| ||
18:58 | Removed duplicate docs for fsl__diff_optimize(). check-in: d8d1bc92a4 user: stephan tags: trunk | |
18:57 | Now that the v1 diff code is gone, consolidated diff.c/diff2.c into diff.c and moved the dibu-specific code into the new dibu.c. That required exposing fsl__diff_optimize() via internal.h so that fnc.c can see it. (Edit: in hindsight, should have renamed diff2.c to dibu.c since most of diff2.c was dibu stuff. Oh, well.) check-in: 2cca86d9a0 user: stephan tags: trunk | |
13:47 | Fixed a segfault introduced two checkins back in [5e12e2134b76]. check-in: a8853a173b user: stephan tags: trunk | |
13:43 | Minor cleanup to the previous checkin. Fixed TK-format output to be syntactically correct for a no-diff run. check-in: 354f81fd5c user: stephan tags: trunk | |
13:19 | f-vdiff can now catch and report renames when the rename is part of the local checkout's state. Code-adjacent constness tweaks. Edit: FIXME: discovered later that this fails when the diff is run from anywhere but the top checkout dir. check-in: 5e12e2134b user: stephan tags: trunk | |
12:03 | Ported in the non-debug-output part of upstream [fossil:9aaefcfd0a8746b63bad]. check-in: d58a4b6237 user: stephan tags: trunk | |
11:24 | Minor internal doc tweaks. check-in: 12c9022cbb user: stephan tags: trunk | |
08:57 | Ported in upstream diff changes [fossil:fbdbc09b402b19de] and [fossil:c311efef078c8733]. Diffing still seems to work. check-in: 93f03cf9ee user: stephan tags: trunk | |
2022-01-22
| ||
18:08 | Upstream diff fix [fossil:44b6f128453b35039bc2]. check-in: 6725e728d4 user: stephan tags: trunk | |
18:02 | Ported in upstream incremental diff tweaks from [fossil:f6112b93e9bbb7e37f24] except that many of the const removal changes are unnecessary and weren't ported. Made fsl_dibu::opt const. Probably should have waited to see if these will be trunked in fossil before going down this rabbit hole. check-in: 01225604ab user: stephan tags: trunk | |
14:27 | Removed the disabled, and fundamentally flawed, attempt at catching renames in f-vdiff. check-in: 4866db6ef5 user: stephan tags: trunk | |
14:26 | Ported in upstream diff patch [fossil:2dad4158dbf0d92b]. check-in: 5492222b8e user: stephan tags: trunk | |
2022-01-20
| ||
17:47 | Workaround for the Excessively Massive Diff bug (in f-vdiff, not the library) by reporting renames as an add/remove pair. Make the default split-mode diff content column widths wide enough for f-vdiff's current handling of how adds/removes are reported. check-in: 1960fea37a user: stephan tags: trunk | |
16:34 | Latest upstream fnc, which moves the former v1 libf diff code into fnc. check-in: ed78994d64 user: stephan tags: trunk | |
15:55 | Merged in rm-diff-v1. This will currently only build when using the --no-fnc configure flag, pending Mark trunking his related fnc changes, at which point that updated fnc will be pulled into this tree. Recursive relationships are tricky sometimes. check-in: 74d90fcdd8 user: stephan tags: trunk | |
15:53 | auto.def: distinguish between the --no-fnc flag and "don't use ncurses at all" so that the ncurses-based diff view can be built when fnc is disabled. check-in: eb5e8319b3 user: stephan tags: trunk | |
09:38 | Replace calls to the deprecated fsl_ckout_close(f) routine. Replace with fsl_close_scm_dbs(f). check-in: f876a65bef user: mark tags: trunk | |
08:54 | Remove deprecated diff v1 code as per /chat discussion. This removes all exclusive diff v1 library routines and data types in preparation for importing this implementation into fnc as per chat with Stephan. It is on a branch pending review in case any bits were missed or incorrectly purged. Closed-Leaf check-in: dbf0fb30dd user: mark tags: rm-diff-v1 | |
2022-01-16
| ||
07:40 | speeling check-in: a9b499a8de user: bch tags: trunk | |
06:44 | f-vdiff now actively checks whether it's being asked to diff ostensibly binary content and refuses to do so. check-in: 47413486d0 user: stephan tags: trunk | |
05:04 | Re-added subdir-inc.make (it's used by doxygen build). Updated a path to account for new hoster. check-in: 12e08213af user: stephan tags: trunk | |
2022-01-12
| ||
04:46 | Added another test for fsl_tkt_id_to_rids(). check-in: a8d5615853 user: stephan tags: trunk | |
03:36 | Initialized a couple vars which gcc 11 now incorrectly reports as possibly uninitialized. Sigh. check-in: 19607914ca user: stephan tags: trunk | |
2022-01-08
| ||
05:45 | Per /chat discussion, changed semantics of fsl_tkt_id_to_rids() to be able to handle an unambiguous ticket ID prefix. check-in: 2bdb6c668f user: stephan tags: trunk | |
03:56 | Replaced the fundamentally flawed fsl_tkt_id_to_blob() with fsl_tkt_id_to_rids(). check-in: 7b2cbb1669 user: stephan tags: trunk | |
2022-01-07
| ||
23:40 | Added fsl_deck_foreach(). check-in: 0741f4d194 user: stephan tags: trunk | |