Login
History of src/fsl.c of 419099b06337e2e0
Login

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

History of file src/fsl.c at check-in 419099b06337e2e0

2024-09-20
18:52
Fix a call to free() which should have been fsl_free(). file: [342529879d] check-in: [5474491f74] user: stephan branch: trunk, size: 28904
2024-09-18
18:52
Minor cleanups and doc tweaks. file: [558b47e26a] check-in: [2ee07f48f0] user: stephan branch: trunk, size: 28911
2023-11-22
11:54
s/__unused/fsl__unused as discussed in /chat with stephan@ to help avoid name collisions with package maintainers; no functional change intended file: [b85c00eee4] check-in: [230cf225fc] user: mark branch: trunk, size: 28916
2023-04-19
02:26
Apply a set of missing f(void) and assigned-but-unused vars from Mark J. file: [deac817d80] check-in: [b96f5840ea] user: stephan branch: no-common-ancestor, size: 28880
2022-11-20
12:20
ensure dstsz-1 is greater than the current length of dst Although somewhat contrived it's a potential problem nonetheless: if the caller passes a destination buffer that contains a string greater than the passed in size of the destination buffer (which is senseless at it means the buffer is already overflowed), we write the full length of src, which could overflow dst. This change makes our fsl_strlcat() implementation behave the same as OpenBSD's strlcat(3) in testing. file: [6b9d738381] check-in: [f2676cbcc2] user: mark branch: trunk, size: 28864
2022-07-31
21:16
Removed some extraneous is-NULL checks. Minor internal cleanups in error reporting. file: [10ba5f2153] check-in: [53f847261b] user: stephan branch: buffer-errcode, size: 28814
21:03
Make more use of fsl_buffer::errCode semantics. Make sure the fsl_error APIs ignore those semanics where necessary. file: [2f6ded07e3] check-in: [5049f44945] user: stephan branch: buffer-errcode, size: 28755
2022-06-27
07:18
Tag ("(void)var;", or "__unused") vars that are not used, tag switch/case fallthroughs w/ __attribute ((fallthrough)); file: [2a31e9938c] check-in: [73ee02a8fe] user: bch branch: trunk, size: 28927
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. file: [25733098a9] check-in: [fcb01c8788] user: stephan branch: trunk, size: 28918
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. file: [40ead87e39] check-in: [b8c029741a] user: stephan branch: trunk, size: 28963
2022-04-09
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). file: [a96882e259] check-in: [3be18124f5] user: stephan branch: trunk, size: 28942
07:41
Ported fsl_system() from fossil and added fcli_sync(). file: [776d66392f] check-in: [5fb49bf7c4] user: stephan branch: trunk, size: 28925
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. file: [322b468eb2] check-in: [bc7bfb06e3] user: stephan branch: trunk, size: 27849
2022-03-08
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. file: [50ebbd4bdd] check-in: [80c84abba6] user: stephan branch: trunk, size: 27825
2022-01-04
22:02
Added fsl_randomness(). Changed fsl_deck_K_set() semantics such that a NULL ticket ID is interpreted as a new (random) ID. file: [9ed7566633] check-in: [896ea2a01b] user: stephan branch: trunk, size: 27737
2021-12-23
07:01
Added fsl_cidiff() API and f-test-cidiff test app. file: [a45c6c5fad] check-in: [1c6aeaf5ce] user: stephan branch: trunk, size: 27603
2021-12-21
20:21
Removed the fossil- name prefix from include/fossil-scm/*.h. file: [3c383abf9b] check-in: [43a9bea8d5] user: stephan branch: trunk, size: 27461
2021-11-21
09:53
Slightly faster fsl_strlen() impl. file: [e4a2195d05] check-in: [c955e93fe5] user: stephan branch: trunk, size: 27496
2021-11-19
08:10
Diverse generic internal and doc cleanups. file: [15f8e1b0f6] check-in: [06f92b7689] user: stephan branch: trunk, size: 27473
05:50
Moved fsl_repo_rebuild() into the public API and added some new state to fsl_rebuild_step and new metrics to f-rebuild. Rebuild adds a few more entries in the event table than fossil does (investigation is TODO) but otherwise seems to behave. file: [d7e2a87be6] check-in: [c389ae9908] user: stephan branch: trunk, size: 27460
2021-11-18
13:47
Added an is-interrupted flag for fsl_cx as a way to interrupt long-running operations but it is not yet being applied anywhere. file: [93cb63d532] check-in: [74aab40d54] user: stephan branch: trunk, size: 27386
09:04
Internal API renaming: fsl__acache ==> fsl__bccache. file: [a93408e982] check-in: [7aaf02031e] user: stephan branch: trunk, size: 27364
2021-11-02
23:52
Mass renaming of many internal APIs from fsl_X to fsl__X (two underscores) and several adjacent const cleanups. file: [6b8bb99ccf] check-in: [83917b7b45] user: stephan branch: trunk, size: 27361
00:21
More work on rebuild and adjacent code. Removed 'restrict' keyword from fsl_strlcpy() and fsl_strlcat() because they break in C++ compilation mode. Renamed fsl_guess_user_name() to fsl_user_name_guess() (consistency) and added fsl_cx_user_guess(). file: [bb4433d078] check-in: [3bcb631b4f] user: stephan branch: trunk, size: 27348
2021-11-01
21:44
Updated fsl_cx_uplift_db_error2() docs to match its semantics. Removed some superfluous is-NULL-arg checks. file: [446dcf591c] check-in: [b4d072b53b] user: stephan branch: trunk, size: 27358
15:58
Add fsl_strlcpy() and fsl_strlcat() BSD-variants to the lib. Less error prone routines to begin replacing strcpy() and strcat() calls. file: [32965cf82b] check-in: [f390a48d56] user: mark branch: trunk, size: 27495
2021-10-21
16:28
Added a timer-based limit option to the annotate operation, much like fossil's, allowing the user to limit it to X milliseconds (CPU time) of work. Added f-annotate --ms flag to make use of this. file: [1d4d1d8706] check-in: [35b8297bc3] user: stephan branch: trunk, size: 26748
2021-10-18
14:03
Numerous minor doc and constness tweaks. Starting to use markdown formatting for API docs, now that it's been discovered that Doxygen can do that. file: [fe0926a982] check-in: [77e8ee40f8] user: stephan branch: trunk, size: 26723
2021-10-15
09:33
While prepping for the merge port, moved the dry-run flag OUT of fcli and into the specific apps which implement it. Added skeleton f-test-merge app for use in the merge development. file: [d3d5ab8281] check-in: [c9fb1f972f] user: stephan branch: trunk, size: 26644
07:54
Insignificant cleanups found while scouting out what's needed to port over merge. file: [e0a723ae9b] check-in: [65b379e3e0] user: stephan branch: trunk, size: 26657
2021-09-18
17:39
More work on the 2021 diff backend port. Still much to do. file: [2250cf3f1d] check-in: [ed33831c3f] user: stephan branch: trunk, size: 26579
2021-08-30
12:15
Minor doc, constness, and char-as-bool tweaks. file: [c7a4b2e2ee] check-in: [3ada2fce76] user: stephan branch: trunk, size: 26534
2021-06-06
07:30
Removed some dead code. Minor internal doc touchups. file: [fba729e7ab] check-in: [1fff00e7c7] user: stephan branch: trunk, size: 26534
2021-06-01
03:27
Minor doc and char-to-bool touchups. file: [4ad62aba4f] check-in: [b199e29d41] user: stephan branch: trunk, size: 28264
2021-03-27
14:54
Renamed and refactored fsl_checkin_enqueue() and fsl_checkin_dequeue() to use an options object and altert the user about exactly which files are enqueued/dequeued via a callback. file: [d25b08f487] check-in: [8abd63ab1c] user: stephan branch: trunk, size: 28264
2021-03-26
07:17
Initial go at a manifest cache similar to fossil's, except that we don't use malloc'd fsl_deck instances. This shaves almost a full second off of (f-parseparty -t c -c -q) and has a hit rate of almost exactly 1 in 3 during that party, but it now accounts for more than half of sizeof(fsl_cx). file: [74769ce503] check-in: [6bb1262768] user: stephan branch: manifest-cache, size: 28173
2021-03-23
00:49
Refactored the rm op to use a callback to report removals, similar to add and revert. Renamed fsl_ckout_file_add/rm... to fsl_ckout_manage/unmanage... Sidebar: used f-revert and the stash to recover from a fatal perl-regex refactoring mishap while working on this. file: [0838d8a200] check-in: [09300fddd6] user: stephan branch: trunk, size: 28117
2021-03-22
16:14
Changed fsl_ckout_revert() to take an options object and added scanForChanges option. fsl_vfile_to_ckout() now prefers to write to vfile.origname instead of vfile.pathname, but that change is up for re-evaluation. Changed fsl_ckout_changes_visit() to report edited-and-renamed files as edited instead of renamed because fossil does it that way. file: [1eab4d389c] check-in: [2cf2cebe3d] user: stephan branch: trunk, size: 28029
2021-03-19
07:27
More work on the update infrastructure. It seems we can consolidate the options and callback state for checkout/update opts, so renamed some APIs to account for both. file: [360b8d5c53] check-in: [6ceda397ad] user: stephan branch: trunk, size: 27941
2021-03-15
11:14
Extended the fsl_confirmer API to be able to ask, and get responses to, simple multiple-choice questions. This will be needed, e.g., for performing an update operation when multiple versions are equally viable candidates. file: [c1b779bf59] check-in: [ccc0fef970] user: stephan branch: trunk, size: 27961
04:25
Globally renamed _checkout to _ckout, as some of these names are getting a bit long. file: [a1207b7211] check-in: [bc9e88ee2c] user: stephan branch: trunk, size: 27791
2021-03-14
15:50
Considerable hammering on the config db APIs to make handling of versionable settings work like the other modes. Eliminated the versionable-specific config get/set APIs. file: [0531be1883] check-in: [a2cd19f640] user: stephan branch: trunk, size: 27824
2021-03-13
08:16
Brought fsl_vfile_scan_changes() up to date wrt fossil, improving its accuracy as well as speeding it up. Improved reporting via fsl_checkout_changes_visit() (i.e. f-status) results. Removed about 200 lines of dead vfile code. file: [593eaf3cfa] check-in: [c77e85e259] user: stephan branch: trunk, size: 27772
2021-03-12
13:06
Moved some code around and renamed a struct member for consistency with similar structs. file: [3a04800dcc] check-in: [9bd1cfea4b] user: stephan branch: trunk, size: 27772
2021-03-11
18:15
Ported f-add's dir-recursion and ignore-glob capabilities into fsl_checkout_file_add() and expanded that function's feature/option set considerably. file: [5be487946a] check-in: [61d3e64e6f] user: stephan branch: trunk, size: 27670
2021-03-10
08:25
Renamed the 'F2' F-card temporary porting name back to F. file: [100555465e] check-in: [63e886fff0] user: stephan branch: f-card-array, size: 27567
06:02
Initial work on refactoring fsl_deck::F from an array of pointers to an array of objects to speed up (potentially drastically) artifact parsing by cutting F-card (de)allocations by 99% or more. Does not yet compile. file: [a3f08ccc51] check-in: [725c13c0d0] user: stephan branch: f-card-array, size: 27573
2021-03-09
06:01
Minor confirmer cleanups and docs. file: [edf29a1e98] check-in: [d58d30707f] user: stephan branch: confirmer-co, size: 27496
2021-03-08
11:14
Initial go at a new interactive confirmation API (not yet connected to checkout op). Removed a functionally-duplicated API. Added __func__() to some cached SQL statements in order to simplify tracking their origin (though this keeps those statements from being reused across multiple functions). file: [77189a23ee] check-in: [9a6bb6834f] user: stephan branch: trunk, size: 27431
2021-03-07
14:37
Added FSL_RC_CONFLICT. Checking process now detects merge conflict markers and fails if fsl_checkin_opt::allowMergeConflict is false (which it is by default). Added f-ci --allow-merge-conflict flag. Removed what seems to be a superfluous db update in the checkout process. file: [45ba40e2c2] check-in: [b5479cc3c6] user: stephan branch: trunk, size: 28358
2021-03-04
21:07
Started factoring the extract-to-checkout code from f-open into lib-level fsl_repo_checkout(). This loses a feature or two which will have to be reworked into the lib API but it seems to work. file: [ff194e4f1e] check-in: [5fd71c1b87] user: stephan branch: trunk, size: 28339
19:29
Renamed fsl_repo_open_opt to the unfortunately verbose fsl_repo_open_checkout_opt to avoid confusion about the options being for fsl_repo_open() (which they're not). Fixed chdir()-back behavior in fsl_repo_open_checkout() when opt->targetDir is NULL. file: [e3724246c0] check-in: [ea0bfdc56d] user: stephan branch: trunk, size: 28256
18:19
Refactored fsl_repo_extract() to take a struct and added an option to specify whether or not the file content should be extracted. Fixed fsl_mkdir_for_file() for 1-letter filenames. file: [0cd54fe91f] check-in: [0e31c5674e] user: stephan branch: trunk, size: 28229
14:27
Added FSL_RC_MISSING_INFO. Minor internal doc cleanups and API result value changes. Reworked how fsl_cx_hash_buffer() returns when its alternative hash option conflicts with the current hash policy. file: [7abe3b9f70] check-in: [d1428d5a93] user: stephan branch: trunk, size: 28143
2021-03-03
08:38
Lots of bending and hammering related to smoothing out f-open. There's still an issue when opening an empty checkout (it's seen as not a checkout by other apps), but that's on the to-fix list. file: [0b5739fb8e] check-in: [2a04a6818c] user: stephan branch: trunk, size: 28120
2021-03-02
08:49
Implement f-open and f-checkout roughly ported from db.c::cmd_open() and checkout.c::checkout_cmd() in Fossil using a draft implementation of the fsl_repo_open_checkout API designed by Stephan. This is a work in progress and is missing a few critical pieces but will open and checkout a given repository. Only tested on OpenBSD and macOS and may not work on Windows yet. file: [1b56dbe400] check-in: [4897fa7285] user: mark branch: open-ckout-wip, size: 27988
2021-03-01
16:21
Arguably a typo fix in the new header. Thank goodness for stream editors. file: [37a4e06c51] check-in: [386316db07] user: stephan branch: trunk, size: 27917
15:46
Replaced the overwhelming majority of license headers with the new project-standard one. Left a few as they were for files which were imported essentially unchanged from Fossil or, in the case of SHA1/SHA3/MD5 bits, other 3rd-party sources. file: [0b50288028] check-in: [fa5fb24496] user: stephan branch: trunk, size: 27909
14:27
Resolved an API inconsistency between fsl_is_reserved_fn() and fsl_is_reserved_fn_windows(). file: [cf99091a9a] check-in: [f8b6945191] user: stephan branch: trunk, size: 28156
13:45
Renamed FCliCommand to fcli_command for consistency's sake. file: [66ffa287eb] check-in: [92aa86396d] user: stephan branch: trunk, size: 27997
12:31
Improved the checkin-to-closed-leaf check to allow checkin if the branch would change. Ported in the reserved filename checks, so that 'add' ops will fail if the user adds a filename which is illegal. file: [8ec4d1e6c5] check-in: [2d90220116] user: stephan branch: trunk, size: 27994
2021-02-28
04:57
fcli now uses its own FCLI_RC_HELP, instead of hijacking FSL_RC_BREAK, to indicate that --help was triggered. file: [9e0b543009] check-in: [d0edf4583f] user: stephan branch: trunk, size: 25721
2021-02-26
16:47
More work on the fcli argument handling rewrite. file: [087464e46a] check-in: [490b7ab32e] user: stephan branch: fcli-flag-rework, size: 25687
2021-02-25
08:22
Some API renaming. Modified how fsl_deck_parse() determines the deck's RID/UUID. Introduced fsl_repo_blob_lookup(). file: [45c3179074] check-in: [467b9e1c18] user: stephan branch: trunk, size: 25673
2021-02-24
05:42
Renamed enum fsl_file_perm_t to fsl_fileperm_e and fsl_rc_t to fsl_rc_e. file: [f6c3a1e199] check-in: [eb5c621f98] user: stephan branch: trunk, size: 25729
04:04
Brought checkin crosslinking up to date wrt fossil (whew) and it appears to work: deleting the mlink/plink entries and running f-parseparty -c seems to do the right thing. Fixed a couple mis-handled cases of cherrypick crosslinking and mis-setting of the fsl_card_Q::type field in fsl_deck_parse(). file: [c2647153ee] check-in: [4dde2be3b0] user: stephan branch: trunk, size: 25729
2021-02-23
18:09
Internal doc/#if block cleanups. Stop checking for NULL deck arguments on fsl_deck_XXX() APIs. Changed error code for a few deck-related cases. file: [b657779b9c] check-in: [2896b543be] user: stephan branch: trunk, size: 25711
2021-02-18
05:11
Replaced the extraneous fsl_double_t typedef with double. file: [0580bcab3c] check-in: [b359548620] user: stephan branch: trunk, size: 25682
2021-02-14
12:36
Started replacing some of the char-as-bool with C99 bool. file: [1151a67223] check-in: [4da3578966] user: stephan branch: trunk, size: 25712
2021-02-13
13:03
Made the fsl_deck object in fsl_deck_output() and crosslink listeners non-const, the former to avoid forcing the client to do much up-front work and the latter because it's necessary for such code to be able to traverse F-cards. That had a bit of a rat's tail of side effects to clean up. Edit: reminder: this caused a sync problem because we added an attachment artifact file which is itself an export of an artifact from the db, leading to a unique constraint violation when pushing. Deleting the attachment table entries, syncing, then rebuilding, resolved it. Hopefully this duplicate artifact won't cause any similar downstream problems. file: [0a97319234] check-in: [ac9b034f79] user: stephan branch: trunk, size: 25712
2021-02-12
22:09
libfossil is now C99, rather than C89, per discussion at [https://fossil.wanderinghorse.net/r/libfossil-forum/forumpost/e02ff0e8d0]. fsl_int{16,32,64}_t have been replaced by the standard uint{16,32,64}_t, FSL_xxx_T_PFMT/SFMT replaced with PRIx32 and friends, and auto.def now checks for -std=c99 capability (but that check could probably be done differently/improved). fsl_int_t and fsl_uint_t are retained, as they're more about documentation/intent than fixed sizes. file: [27a1e09734] check-in: [ee070353b9] user: stephan branch: trunk, size: 25713
07:41
Header file reorgs. file: [94ce55b88e] check-in: [c1681af460] user: stephan branch: trunk, size: 25777
2021-02-09
11:40
Added some protections against generating empty checkin. Removed some stale docs. file: [14fcbd90a4] check-in: [9bff657291] user: stephan branch: trunk, size: 25665
08:53
Fixed a null pointer deref in a routine i thought never got passed NULLs. file: [2803b943ef] check-in: [d826ff335f] user: stephan branch: trunk, size: 25650
00:18
Updated license text in almost all C/H to claim copyright while attributing all of the files as heavily derived from DRH's work. file: [3a4278a388] check-in: [631fb3f69a] user: stephan branch: trunk, size: 25587
2021-02-08
23:47
Renamed the hash length constants. file: [8419558f81] check-in: [0c9a6d3644] user: stephan branch: trunk, size: 25546
23:32
Added deck support for forum posts, except that crosslinking them is currently unimplemented (requires more infrastructure). file: [c20b51f07c] check-in: [b0ac77411e] user: stephan branch: sha3-port, size: 25574
18:23
f-apps compile and f-sanity runs. MILESTONE. Still need to test the other f-apps, though. file: [39cd14fa89] check-in: [76c290eb05] user: stephan branch: sha3-port, size: 25552
16:03
Baby steps towards dual sha1/sha3 support. This does not yet compile but i'm nervous about losing work done so far. It's been painless but tedious, which is not bad, all things considered. file: [fd14791b34] check-in: [240701a6ec] user: stephan branch: sha3-port, size: 25302
2021-02-07
14:31
Globally replaced http://... URLs with https://.... Most of them probably still work, too. file: [15e8271d02] check-in: [6af7b3b7c8] user: stephan branch: trunk, size: 25011
2014-10-28
14:08
typo fix in an #undef, from Martin Gagnon. file: [a67e5476b1] check-in: [8b04160e56] user: stephan branch: trunk, size: 25008
2014-10-07
15:25
fixed a potential corner-case null deref when built without FSL_CONFIG_ENABLE_TIMER. file: [01ccd7e69a] check-in: [234eba25f4] user: stephan branch: trunk, size: 25007
2014-08-26
17:23
minor pedantic cleanup tweak, brought on by something seen in kdbg. file: [4d4e8156bc] check-in: [facef16fcf] user: stephan branch: trunk, size: 24977
2014-07-18
14:26
s2: ported in Fossil.time/file/delta APIs. file: [2df578db8f] check-in: [316d9a3383] user: stephan branch: trunk, size: 24884
2014-05-29
16:56
Portability fixes (broken char signedness assumptions) for Raspberry Pi. file: [97a445e546] check-in: [9fb7bcf2a9] user: stephan branch: trunk, size: 24869
2014-05-06
21:20
Added FSL_RC_UNKNOWN_RESOURCE. Minor cleanups. file: [752a8cbe46] check-in: [97eed771cd] user: stephan branch: trunk, size: 24871
2014-04-22
20:14
Added a bunch of elses. file: [acce29830d] check-in: [153950a7f3] user: stephan branch: trunk, size: 24891
20:09
added fsl_str_is_date2() in prep for 5-digit year support (a challenge from drh ;). file: [5e10ea1725] check-in: [674b3d07d3] user: stephan branch: trunk, size: 24791
2014-04-06
12:33
bugfix: interpret newlines literally in SQL strings in fsl_simplify_sql(). file: [c38bd0c046] check-in: [ef35b0a0a9] user: stephan branch: trunk, size: 24158
2014-04-01
17:04
Minor milestone: f-vdiff basically works. Just need to add diff-vs-checkout support. Added fsl_isatty() b/c it is needed by a couple of apps (could alternately go in fcli). file: [2cc4db763b] check-in: [ab6bf194c2] user: stephan branch: trunk, size: 24115
2014-03-30
08:52
minor non-functional cleanups. file: [f34589103b] check-in: [fab9aad9f8] user: stephan branch: trunk, size: 23832
2014-03-29
10:09
Introducing the highly arguable fsl_simplify_sql() utility routine. file: [933633bb75] check-in: [7b0022b9a5] user: stephan branch: trunk, size: 23774
2014-03-27
20:23
moved the fsl_list impl code into its own file. file: [e1ade31b80] check-in: [b668b02447] user: stephan branch: trunk, size: 21914
2014-03-23
18:25
Weekend hacking session is now over. file: [3ed144bbb4] check-in: [fae79b28a4] user: stephan branch: trunk, size: 25952
2014-03-20
22:36
Fixed a pointer-to-pointer which should have been a pointer. Caused corrupted fsl_error message text. file: [ce9b26aeba] check-in: [a9029b17d2] user: stephan branch: trunk, size: 25923
19:21
Added the basic fsl::Context class. Some minor additions to the C API to support the C++ api a bit. Refactored fsl::Db so that it can proxy handles without taking over ownership (needed by the Context's 3 db handles). file: [50d46e6046] check-in: [f9ff5a4b8d] user: stephan branch: trunk, size: 25924
2014-03-19
16:39
fixed a constness bug. file: [f5557d0be7] check-in: [28f65e12ce] user: stephan branch: trunk, size: 25946
2014-03-17
21:12
Ported in fsl_gradient_color(). Added fsl_rgb_encode/decode(). Minor comment changes in f-tag. file: [6e57c59ad9] check-in: [a508afba51] user: stephan branch: trunk, size: 25946
2014-03-10
22:40
Fixed/re-added fail-on-no-changes. Added fsl_list_swap(). file: [93dfa312a5] check-in: [d5c871ff0f] user: stephan branch: trunk, size: 25218
2014-03-08
22:21
More work on the checkin bits. Reimplemented how baseline manifests get their F-cards calculated. Not yet sure how best to implement a delta manifest. file: [9bf3135c39] check-in: [1cd70042f1] user: stephan branch: trunk, size: 25109
11:50
Started work on some internals needed for doing a checkin. file: [9488ca1e7a] check-in: [c77b3cb7fb] user: stephan branch: trunk, size: 25077
2014-02-22
10:33
Ported in fossil's system timer APIs. file: [1576dc288a] check-in: [91471dde81] user: stephan branch: trunk, size: 24312
2014-02-20
19:18
Pulled in latest upstream cwal. Added th1ish/fsl_zip_writer bindings. Expanded the fsl_zip API a bit. file: [976b6dbade] check-in: [9c23d7550d] user: stephan branch: trunk, size: 22359
2014-02-14
09:05
Globally changes the API docs from fossil/sqlite-style '**' to Doxygen-friendly format because the extra stars hinder writability/changability and require an extra filter at the doxygen-processing level. file: [0da8c8e09f] check-in: [a2cbd2e343] user: stephan branch: trunk, size: 22330
2014-02-13
16:23
started on a gzip stream, but it turns out the code i took from fossil for this only works if whole inputs are gzipped at once, so am puting this aside for now. file: [cd8cddfdbb] check-in: [a4fc7ee1df] user: stephan branch: gzip-stream, size: 22401
2014-02-12
20:42
Moved ZIP-creation code into the public API. Expanded and fixed it considerably. Added f-zip tool. file: [cb991f8339] check-in: [54a3117046] user: stephan branch: trunk, size: 22330
2014-02-10
18:29
Consolidated FSL_ATYPE_xxx and FSL_CATYPE_xxx into FSL_CATYPE_xxx, replaced fsl_atype_t with fsl_catype_t. file: [996f82b5bb] check-in: [c0ca757a66] user: stephan branch: trunk, size: 22262
2014-02-09
13:10
Got initial create-branch code working. file: [f6f990e69b] check-in: [1c87e1134f] user: stephan branch: trunk, size: 22587
2014-02-07
16:04
Added the fsl_glob_list_xxx() family of functions, analog to fossil(1) Glob class except that they use fsl_list instead of a new class. file: [fc3df9b04a] check-in: [95e3925c25] user: stephan branch: trunk, size: 22519
2014-02-06
17:26
Added fsl_confirm() family of functions for up-coming features. Fixed overwrite-repo in fsl_repo_create() (it previous didn't do anything useful). Changed how fsl_cx stores its default user name, and it now takes the default user name from a repo when opening it (where user.id==1). Other minor cleanups and tweaks. file: [f3b33c8f36] check-in: [ebda4a36e3] user: stephan branch: trunk, size: 24045
2014-02-05
20:49
Replaced a couple gratuitous structs with (char *). Other minor tinkering. file: [f5433ed276] check-in: [a94b263ba1] user: stephan branch: trunk, size: 23150
2014-02-04
18:01
Added fsl_julian_to_unix(). file: [68ef964e95] check-in: [eacd634263] user: stephan branch: trunk, size: 23059
2014-02-02
14:20
Another round of minor cleanups and doc fixes. Added fsl_input_f_buffer(), based on new fsl_buffer::cursor member (needed for other reasons), so buffers can now be input streams. file: [ab9fbe9790] check-in: [7aa94e7ce8] user: stephan branch: trunk, size: 22971
2014-02-01
14:19
minor round of tinkering and refactoring. Moved fsl_config_xxx() decls into fossil-confdb.h. file: [cdfab62d4f] check-in: [ad2a0cb933] user: stephan branch: trunk, size: 23439
2014-01-24
20:49
more doc tweaks. file: [68d2ecd133] check-in: [0be0e644f8] user: stephan branch: trunk, size: 23295
2013-09-17
18:15
Ported in fsl_pathfinder utility API from th1ish. file: [3935b7048b] check-in: [db1a141463] user: stephan branch: trunk, size: 23074
2013-09-16
18:58
Added a really horrible, but also mathematically justified, ugly kludge to the julian==>iso8601 conversion which flips SS.999 up to the next second (if it will not wrap a day boundary). This is EVIL but the math of unexpected .999 fractions (0.27% in fossil(1) repo) vs the cases this actually breaks (so far none) argues for it. file: [a9c3305b46] check-in: [ea6d329863] user: stephan branch: trunk, size: 23006
15:53
Simplified some of the math a small bit in fsl_julian_to_iso8601(). file: [2ec4f28bf5] check-in: [2f44409167] user: stephan branch: trunk, size: 22081
2013-09-11
15:57
comments and minor typedef changes. Nothing functional. file: [681fe42690] check-in: [b8ab152db0] user: stephan branch: trunk, size: 21591
15:43
Removed some dead code. Refactored fsl_julian_to_iso8601() to use direct bytestream output (no fsl_snprintf() needed). file: [e0bf10c262] check-in: [a1e145b15b] user: stephan branch: trunk, size: 21668
11:35
Fixed a long-standing bug which could cause fsl_snprintf() to return the wrong thing when matching substrings. file: [83c1fdc7a1] check-in: [0b5ebbdae0] user: stephan branch: trunk, size: 22212
2013-09-10
22:29
Found a usable workaround for the S.000 ==> (S-1).999 conversion problem. All julian/iso conversion tests pass now. file: [56d443d14e] check-in: [6ee5a74681] user: stephan branch: trunk, size: 22194
22:12
Several fixes for the iso8601/julian conversions. file: [acb0d841ad] check-in: [057d313723] user: stephan branch: trunk, size: 22193
20:36
Simplified fsl_deck_parse() signature. Reimplemented fsl_julian_to_iso8601() using a different algorigthm - the previous one has an off-by-one-day bug in some cases. file: [2571f45495] check-in: [63333ab345] user: stephan branch: trunk, size: 21692
2013-09-09
23:15
fixed the hour part again. Expanded the tests a bit. file: [cfeff20ff8] check-in: [1a3c359ad6] user: stephan branch: trunk, size: 20957
22:47
fixed times for noon and earlier. Julian starts the day at noon. file: [076b066337] check-in: [99ed49b24c] user: stephan branch: trunk, size: 20945
22:38
removed now-unused macro. file: [40af9ab122] check-in: [c17d8fdfed] user: stephan branch: trunk, size: 20883
22:22
added docs for fsl_julian_to_iso8601() and a flag to control whether or not the fractional seconds part is output. file: [215902cbcc] check-in: [6479f10c6a] user: stephan branch: trunk, size: 20900
22:14
Added fsl_julian_to_iso8601(). Seems to work but needs more testing and docs. Too tired. file: [e653d4ee5b] check-in: [9377585097] user: stephan branch: trunk, size: 20749
18:37
removed a duplicate null check. file: [b6cd2b0a3a] check-in: [63941300fd] user: stephan branch: trunk, size: 18904
18:32
Added fsl_iso8601_to_julian(). Minor doc updates. file: [94df261e51] check-in: [479a7c897f] user: stephan branch: trunk, size: 18912
2013-09-08
17:40
Added SQL functions: FSL_USER(), FSL_CONTENT(), FSL_SYM2RID(). Undid part of the previous fsl_buffer_compress() optimization because it cannot help us much for the real use cases and complicates the code. More proactive int casting for va_list bits. file: [664ea42105] check-in: [f9e0b1801f] user: stephan branch: trunk, size: 17848
15:39
Lots of minor additions and tweaks, mainly in support of app-level code. file: [4bd5e3ef9f] check-in: [7bfbc3dba6] user: stephan branch: trunk, size: 17518
12:01
Moved fsl_memory_allocator into (new) fsl_lib_configurable struct. fsl_repo_create() now accepts a NULL fsl_cx parameter, in which case it uses a temporary local context. file: [92ebbbdbdc] check-in: [f34aaca9f5] user: stephan branch: trunk, size: 17505
10:21
moved fsl_malloc/free/realloc() to fossil-util.h. Minor cleanups in fsl_appendf() and f-ls. file: [d333c46d8a] check-in: [f50c561594] user: stephan branch: trunk, size: 17591
2013-09-03
15:40
More ticket bits. Minor API tweaks. file: [4aba78dd69] check-in: [5a47293811] user: stephan branch: trunk, size: 15859
2013-08-30
18:26
consistency: s|fsl_cx_init_param|fsl_cx_init_opt|g file: [f7fbf41b98] check-in: [d155bafd28] user: stephan branch: trunk, size: 15859
18:05
insignificant cleanups and docs/text touchups. file: [7ef916757f] check-in: [efaeb72011] user: stephan branch: trunk, size: 15871
2013-08-29
17:19
Moved SQL tracing from stderr back to stdout, so that redirection and flushing get the SQL output lined up with the app output. Renamed FSL_ATYPE_G to FSL_ATYPE_TAG. Aligned the FSL_ATYPE_xxx values with their FSL_CATYPE_xxx partners. Fixed a fsl_atype_t/fsl_catype_t mixup in f-ls (thanks, clang). file: [8896ba4ff4] check-in: [98b8da1754] user: stephan branch: trunk, size: 15961
16:40
s/fsl_init_param/fsl_cx_init_param/ file: [269150a4bd] check-in: [c611b4e1a1] user: stephan branch: trunk, size: 15959
15:24
minor API renaming/shortening, doc additions, removed some dead code. file: [c3e029845e] check-in: [135fb8b36c] user: stephan branch: trunk, size: 15941
2013-08-28
16:45
Creation of new repos is more or less finished. fossil(1) seems to be happy with them. file: [1a91d9fc59] check-in: [859846313d] user: stephan branch: trunk, size: 16341
2013-08-25
14:30
minor cleanups in the xlink callback code. fixed an error propagation case. file: [2c2d346854] check-in: [966209515b] user: stephan branch: trunk, size: 16258
14:15
First draft of artifact crosslink callbacks, to allow us to farm out the crosslinking work. file: [63e5b1d3a5] check-in: [fb18a52241] user: stephan branch: trunk, size: 16258
12:53
more minor API cleanups and renaming. file: [518a9729a6] check-in: [bc4da7e12f] user: stephan branch: trunk, size: 16371
11:39
More API renamings. Moved some card-related code from internal to public APIs. Added foreach iterator for F-cards. Added basic f-ls app. file: [90adc91ded] check-in: [e0963e92ca] user: stephan branch: trunk, size: 16416
09:12
API renamings (shortenings) and minor API simplifications. Doc updates, some work on making the R-card optional. file: [b8ac19cb61] check-in: [c0752c60c2] user: stephan branch: trunk, size: 16404
2013-08-24
23:21
Added new file for Event APIs. Minor refactoring and code consolidation. Fixed a crosslinking bug which used a wrong (old/changed) format specifier for event-XXX tags. file: [d47a06c52f] check-in: [b5b5a52965] user: stephan branch: trunk, size: 16440
15:54
more wiki work file: [6cac7d49e1] check-in: [7df0b1de78] user: stephan branch: trunk, size: 16251
2013-08-22
13:44
fsl_internal.h ==> fossil-internal.h file: [2b8070667f] check-in: [2cae867331] user: stephan branch: trunk, size: 16011
2013-08-21
16:38
Fixed unitialized vars caught by clang (not gcc). Minor compile workaround for tcc (it leaks a 'unix' macro). Now builds cleanly in c89 mode with gcc, clang, and tcc. file: [1995066ee9] check-in: [27751fd85d] user: stephan branch: trunk, size: 16008
2013-08-20
20:02
More work on crosslinking, minor refactoring/code movement. Added f-event test app. file: [6643bc68ab] check-in: [06179ab0e6] user: stephan branch: trunk, size: 16006
2013-08-19
20:40
Minor cleanups. Replaced fsl_db_unix_to_iso8601() with fsl_unix_to_iso8601() (didn't know strftime() was C89). file: [39efa56d1f] check-in: [fb9ef509fe] user: stephan branch: trunk, size: 15931
2013-08-18
03:30
Added fsl_list_sort(). file: [6d4b074e40] check-in: [5db83df0be] user: stephan branch: trunk, size: 15664
2013-08-17
19:48
another round of API renamings for consistency purposes. file: [3f71d7dde1] check-in: [f0ceea7dd2] user: stephan branch: trunk, size: 15465
13:11
Renamed some functions, started moving the fsl_cx-specific code into fsl_cx.c. Added fsl_fatal(). file: [6f17cd58c6] check-in: [cd522883eb] user: stephan branch: trunk, size: 15468
2013-08-16
20:04
Added fsl_deck_unshuffle() to sort any lists which need it and to calculate the R-card (that card works now). Fixed a memleak in fsl_acache_clear. A bit of API renaming and refactoring. file: [0d5ea96ac1] check-in: [6dc5c4ab76] user: stephan branch: trunk, size: 38317
11:17
Removed fsl_mf class, consolidated it with fsl_deck. file: [0676337179] check-in: [8bbef4153d] user: stephan branch: trunk, size: 38244
09:58
Added J-cards to the manifest parse, making manifest parsing more or less complete (all cards implemented and basic sanity tests passing). The parser now figures out what artifact type it is and what contents are legal on the fly, obviating much of the to-be-ported validation checking. API renamings for consistency: fsl_mf_tag==fsl_mf_tcard, fsl_mf_file==fsl_mf_fcard, fsl_mf_cherrypick==fsl_mf_qcard. file: [de0edd51d2] check-in: [8735de8159] user: stephan branch: trunk, size: 38288
06:14
i am obviously way to tired to be doing this right now. Time to go walk Baako. file: [871eb33800] check-in: [75b667cf16] user: stephan branch: trunk, size: 38258
06:12
Changed the default resizing policy for fsl_list_append(). file: [ba203c598d] check-in: [46e1e4bf1f] user: stephan branch: trunk, size: 38232
05:48
Can now round-trip manifests with cherrypick (Q) cards, with the caveat about the D card sub-second precision. Moved some of the more obscure bits out of the public API. file: [d387e17b1e] check-in: [26beddc0a9] user: stephan branch: trunk, size: 38141
03:44
Lots of tinkering with the repo/checkout config getter routines. file: [a82476d0fc] check-in: [0674a892d6] user: stephan branch: trunk, size: 38064
03:01
Several minor infrastructure-level additions. Added fsl_stream(). Ported in fsl_is_simple_pathname(). Enabled fsl_mkdir() and fsl_unlink() (were accidentally disabled due to an unfortunate #if 0 block). file: [7f7c1a8ab9] check-in: [be4b62818e] user: stephan branch: trunk, size: 31026
2013-08-15
14:35
Added f-resolve tool to resolve symbolic names and uuids. Minor signature change to fsl_repo_sym_to_uuid(). file: [9cd7f27764] check-in: [b170fb24fe] user: stephan branch: trunk, size: 30916
2013-08-14
23:15
Added fsl_sha1_cx_empty, for consistency/completeness. Minor cleanups to the last round of refactoring. file: [f7201262cc] check-in: [9307625bb7] user: stephan branch: trunk, size: 30907
22:54
More work on the deck/manifest API. Moved manifest test code into test-mf.c. file: [e238cdf1da] check-in: [ac713788f4] user: stephan branch: trunk, size: 30848
2013-08-13
19:32
Added ability to add/cancel/propagate tags by applying +/-/* prefix to f-tag. Refactored dry-run mode to use a transaction/rollback, for more realism. Refactored the public tag API a bit. Fixed a va_list handling error in fsl_db_g_text(). file: [843798aa95] check-in: [caeb8eb815] user: stephan branch: trunk, size: 30733
14:15
changed semantics of fsl_buffer_append() when (n==0), so that it ensures a NUL terminator even in that case. file: [cd0d57074a] check-in: [7664ad456b] user: stephan branch: trunk, size: 30728
13:17
Renamed header files from fossil/*.h to fossil-scm/*.h, to avoid any potential confusion with the fossil FS or other fossils out there. file: [89a8f18a66] check-in: [99a4a0ff23] user: stephan branch: trunk, size: 30817
13:12
More work on manifest parsing. Removed tag-test code from test.c b/c it is effectively done in f-tag.c. file: [3412705d08] check-in: [00782f790c] user: stephan branch: trunk, size: 30809
10:55
Added fsl_cx::flags, APIs to set/get them, and a flag to disable the generation of timeline event entries when crosslinking control manifests. file: [ad65b4e925] check-in: [a62817438b] user: stephan branch: trunk, size: 30691
2013-08-12
15:44
Cleanups and fixes in the db bits. s/FSL_TAG_xxx/FSL_TAGTYPE_xxx/g. Fixed a memleak in the handling of the fsl_db::filename entries for the special dbs. fsl_cx_checkout_close() now always closes its accompanying repo first because the repo is attached and we end up in a weird state if we do not. file: [bbfcd66c48] check-in: [ba9abe6330] user: stephan branch: trunk, size: 30445
14:01
Fixed wrong tag names output in crosslink-generated messages, caused by copy-paste porting of code with different semantics :/. Other minor cleanups. Added --dry-run to f-tag. file: [171d309bd7] check-in: [6f131086fc] user: stephan branch: trunk, size: 29855
03:11
Fixed swapped args in fsl_stmt_each() which broke each() callbacks. Changed fsl_stmt_each_f() signature. Added f-timeline.c basic timeline mini-app. file: [b22ea73273] check-in: [f3b0243385] user: stephan branch: trunk, size: 29752
2013-08-11
22:18
Improved error reporting in sym-to-rid lookup. Added f-tag rules to the proper (not generated/overwritten) copy of the makefile this time. file: [30a0393d21] check-in: [25e310704a] user: stephan branch: trunk, size: 29597
20:53
Changed fsl_guess_user_name() to require fsl_free(), not fsl_filename_free(), for cleanup. file: [47dc1375f8] check-in: [07e7c43fb8] user: stephan branch: trunk, size: 29483
19:35
Fixed fsl_pq_insert() to INCREASE the use count, not DECREASE it. Tag saving seems to be more or less complete, including crosslinking for the basic (tag-related) bits. file: [6fa8b95a3d] check-in: [d4ec89c216] user: stephan branch: trunk, size: 29384
18:15
Lots of work on manifest crosslinking. IN THEORY tag changes are now feature-complete, but i want to commit this and back it up BEFORE testing this write operation... file: [415661583b] check-in: [52ec7915e3] user: stephan branch: trunk, size: 29195
15:42
More skeleton work on manifest crosslinking. file: [e7bb9a9485] check-in: [a95132ac5c] user: stephan branch: trunk, size: 28889
13:17
Ported in fsl_repo_content_undelta() and fsl_repo_shun_artifacts(). Added a public API and tests for the fsl_db::beforeCommit triggers. A number of minor additions, cleanups, and fixes. file: [cb26db27d4] check-in: [ab3f72ce6c] user: stephan branch: trunk, size: 28519
10:35
Ported in content_new() as fsl_repo_content_new(). Added a prepared statement caching mechanism similar to db_static_prepare() (but without the statics). file: [a8b519bbb6] check-in: [0c18f5b486] user: stephan branch: trunk, size: 28274
2013-08-10
23:29
more API renaming, expanded the FSL_xxx_T_PFMT collection. file: [d78ae22440] check-in: [69dd500a28] user: stephan branch: trunk, size: 28484
19:51
Got content_get() ported in as fsl_repo_content_get(). That was an adventure. file: [8637738ec6] check-in: [7790ed0962] user: stephan branch: trunk, size: 26161
14:30
more work on the leaf bits. file: [4890786a21] check-in: [f578832130] user: stephan branch: trunk, size: 26123
12:42
cleanups and fixes to the previous commit. s/fsl_stmt_prepare/fsl_db_prepare/g. file: [f5286371cb] check-in: [9f47dbd75d] user: stephan branch: trunk, size: 25729
11:47
More db infrastructure for the content-save process. Started work on fsl_cx_content_put(), but it's a beast and is missing parts. file: [fc1531d4e5] check-in: [ed6df55bda] user: stephan branch: trunk, size: 25733
09:55
removed some dead code, doxygen tweaks, changed a couple func signatures. file: [987ecbb20d] check-in: [348f93deb0] user: stephan branch: trunk, size: 25824
09:38
Ported in the priority queue class. Minor doc fixes. file: [6ca95fb094] check-in: [a600c5f461] user: stephan branch: trunk, size: 25886
2013-08-09
22:29
Added fsl_(sha1|md5)sum_(stream|filename)(). s/fsl_input_FILE/fsl_input_f_FILE/g, for consistency. file: [27036d8aa4] check-in: [1c3b2f9249] user: stephan branch: trunk, size: 25842
20:29
Changed return semantics of fsl_list_reserve(), for consistency (old semantics were copy/pasted). Ran some code through reformatter. file: [a6b88f18e3] check-in: [78bf9244bd] user: stephan branch: trunk, size: 25840
18:59
Doc additions, minor API renamings. file: [e52569713d] check-in: [d011e3345f] user: stephan branch: trunk, size: 25302
18:38
Ported in the low-level content cache bits. Fixed CANCEL tag cards to not output their value. file: [e95a5fcf6e] check-in: [76c3b5a830] user: stephan branch: trunk, size: 25302
2013-08-08
20:53
Refactored fsl_cx::dbXXX back into separate db handles, and fsl_cx::dbMain is now a pointer refering to one of db(Config,Ckout,Repo). Requires notably more code/complexity but i am leary of using a :memory: db as the main db (e.g. TEMP tables can only be created in the main db). This breaks part of the th1ish bindings, but will fix that later/tomorrow. file: [a9191078a3] check-in: [3273fcaae5] user: stephan branch: trunk, size: 25246
16:32
Renamed and modified fsl.c → src/fsl.c. moved main sources into src/. moved fsl_internal.h to include/fossil. file: [e5c6693ad0] check-in: [dd9401360d] user: stephan branch: autosetup, size: 25477
2013-08-07
19:54
int type fix for a few internal fsl_appendf_f() impls. file: [c49ef38138] check-in: [159a96613a] user: stephan branch: trunk, size: 25470
2013-08-06
20:28
more doxygen and minor api additions. file: [dc1215d0bd] check-in: [4c42387a6b] user: stephan branch: trunk, size: 25455
17:14
more baby steps towards committing a tag change. file: [405b6dc49e] check-in: [380a6483e5] user: stephan branch: trunk, size: 25219
2013-08-05
21:16
Minor tinkering, doc additions, s/FSL_UUID_SIZE/FSL_UUID_STRLEN/, added FSL_MD5_STRLEN. file: [d2c8923dd0] check-in: [0c9cd6f262] user: stephan branch: trunk, size: 25178
19:16
more small steps towards writing a tag to the db. file: [32ddfaa55d] check-in: [1c3e40ed15] user: stephan branch: trunk, size: 25174
2013-08-04
11:17
Added Fossil.Context.resolveUuid() binding for fsl_cx_sym_to_uuid(). file: [0eeabe736d] check-in: [52e50c041d] user: stephan branch: trunk, size: 25134
10:47
Ported in the symbol-to-rid/uuid resolver bits. file: [99787b32bf] check-in: [24a991ef4e] user: stephan branch: trunk, size: 25142
2013-08-03
20:13
Lots of cleanups and docs for the deck APIs. Added F Cards, but they are untested so far. file: [dfe8dbc07e] check-in: [a1bfbda5e6] user: stephan branch: trunk, size: 16408
14:42
guess what - more refactoring of the manifest internals. file: [68db9da39c] check-in: [562206c1c5] user: stephan branch: trunk, size: 16400
13:08
More manifest work. Added T card support. Renamed some APIs. file: [ced661dce8] check-in: [84e5b5d499] user: stephan branch: trunk, size: 16156
11:16
work on the julian/unix time bits. file: [4568591b26] check-in: [ec86edef51] user: stephan branch: trunk, size: 16008
10:17
more work on the manifest/cards API. file: [80a56ce976] check-in: [3ba9045142] user: stephan branch: trunk, size: 15908
2013-08-02
21:49
more tinkering with the mf api. file: [6ebd7197fe] check-in: [e68ea6b141] user: stephan branch: trunk, size: 15892
18:43
more work on the manifest API. file: [f62527f209] check-in: [4c71d5b52d] user: stephan branch: trunk, size: 15886
17:08
More work on the manifest API. file: [90cb8c6d26] check-in: [121538cf3c] user: stephan branch: trunk, size: 15836
15:24
Started work on the Manifest API. file: [c70a9f8871] check-in: [9c9a968c6b] user: stephan branch: trunk, size: 15817
2013-08-01
15:36
Ported in the delta generation/application code. Made minor (untested) changes to librify the API. file: [c9ed49b06d] check-in: [22c10bf00f] user: stephan branch: trunk, size: 15513
2013-07-31
20:46
Fleshed out the fsl_roles_t enum, renamed it to fsl_user_role_t. Reworked fsl_rc_cstr() so that gcc will warn if i forget to add new enum entries to it. file: [7f996fa57a] check-in: [4221a82fa4] user: stephan branch: trunk, size: 15330
18:16
Moved some of the 'internal' functions into the public API. Added fsl_fstat abstraction for fsl_stat() calls, refactored fsl_stat() to use the new abstraction and moved it into the public API. file: [86043b878d] check-in: [090d7dd510] user: stephan branch: trunk, size: 15089
16:44
Renamed fossil2.c → fsl.c. Renamed fossil2.c to fsl.c. Seems to be the last references to 'v2' except maybe some docs. Renaming libf2.{a,so} to libfossil. file: [a132c6f931] check-in: [2c40e2033b] user: stephan branch: trunk, size: 15036
16:40
minor renamings for consistency. Changed fsl_db_role_t to a bitmask (as an experiment). file: [a132c6f931] check-in: [6d5a908310] user: stephan branch: trunk, size: 15036
14:39
s/fossil2.h/fossil.h/g file: [0afbe4a144] check-in: [9c20ce5c00] user: stephan branch: trunk, size: 14803
2013-07-30
14:49
a lot more refactoring than i set out to do. Lots of work on how the context manages its db instances. Config db is not yet finished. file: [567bc1bb9f] check-in: [dd6c2b4256] user: stephan branch: attach-dbs, size: 14804
11:08
Started refactoring the per-fsl_cx db model: one implicit main db (:memory:) with all others attached. This simpifies connection logic quite a bit but might have side-effects i have not yet considered/encountered. This breaks th1ish's understanding of the db arrangment. file: [24cba5f7ce] check-in: [3251aaf6d8] user: stephan branch: attach-dbs, size: 14786
09:50
Refactored how we keep track of f->dbMain. It is now a pointer/alias for one of (dbCkout, dbConfig, dbRepo). Then forgot to check in before porting in %b/%B format specifiers for fsl_appendf(). file: [5f76db8473] check-in: [3fb14b6900] user: stephan branch: trunk, size: 14616
2013-07-29
18:15
Added fsl_db_get_TYPE() family of functions (all untested, i might add). Fixed the empty-string copy case for fsl_strdup() (now creates a length-0 copy). A number of minor cleanups in the DB API. file: [7dd96d8a6b] check-in: [56df1f6446] user: stephan branch: trunk, size: 14684
2013-07-28
17:53
reformatted some imported code. Added more API docs. file: [842ae4e074] check-in: [076d315904] user: stephan branch: trunk, size: 14499
17:44
lots of tinkering and minor additions, minor doxygen format changes to please both emacs and doxygen. file: [9e1e2228f4] check-in: [9744556a7e] user: stephan branch: trunk, size: 14613
14:44
Improved fsl_cx_checkout_open(), renamed fsl_repo_checkout_open() (or whatever it was called) to that. Other minor cleanups. file: [1edc0bfa9f] check-in: [17c1b674d5] user: stephan branch: trunk, size: 14532
11:04
s/fsl_ctx/fsl_cx/g (easier to type). Added doc subdir (doxygen). file: [195ce5de0c] check-in: [63bd510e80] user: stephan branch: trunk, size: 14540
2013-07-27
18:41
ported in lots of fs/ctype-related utilities, required for up-coming db-opening bits. file: [bf585d5cc1] check-in: [14c73fb9f7] user: stephan branch: trunk, size: 14566
17:14
More refactoring of the fsl_db API. Still not quite happy with the monolith that is fsl_db_open(). file: [cde87a5a79] check-in: [5267fe629b] user: stephan branch: trunk, size: 12871
12:48
lots of fixes and touchups, mostly in the db layer. file: [315586b8e3] check-in: [afbfb58da5] user: stephan branch: trunk, size: 12841
08:44
more work on the db layer and their script bindings. file: [c48517ce2d] check-in: [a1e6a120d6] user: stephan branch: trunk, size: 12208
07:47
Some refactoring of fsl_error usage to consolidate some code. file: [e051a73ae6] check-in: [2eedf3f4d1] user: stephan branch: trunk, size: 12200
07:14
More work on the db layer. file: [c633346bae] check-in: [dc3cbf0f20] user: stephan branch: trunk, size: 11464
02:54
ported in some of the stat()-related utilities, added th1ish bindings for them. file: [844e35b4fa] check-in: [1e02eb9264] user: stephan branch: trunk, size: 11384
01:51
Another big round of minor cleanups and preparation for up-coming bits. file: [84ebdcac90] check-in: [9fa5fb1f96] user: stephan branch: trunk, size: 9887
00:27
All kinds of tinkering. file: [6fb0bb3f5e] check-in: [71060e72f1] user: stephan branch: trunk, size: 9880
2013-07-26
21:42
more additions and minor fixes. file: [161984b023] check-in: [56b3bd7640] user: stephan branch: trunk, size: 9790
20:43
Improved an error message, minor header tweaks. file: [19805be336] check-in: [97af42c7d2] user: stephan branch: trunk, size: 9721
20:35
Implemented basic check of is-a-repo/is-up-to-date when repo db is opened. file: [76c26b55f3] check-in: [d6a2953847] user: stephan branch: trunk, size: 9665
19:40
ported in several of the SQL function bindings. file: [9d14897cd2] check-in: [b7228fb419] user: stephan branch: trunk, size: 9676
2013-07-25
17:16
Renamed fossil2.c → src/fossil2.c. move source code to ./src dir file: [13c46ac4ed] check-in: [6c59afb005] user: bch branch: nbsd, size: 6824
06:42
removed the fsl_ctx arg from routines where it was only used for the allocator. file: [13c46ac4ed] check-in: [52fd2ce85c] user: stephan branch: trunk, size: 6824
06:33
Removed fsl_ctx::allocator, made it a library-wide setting. Started simplifying APIs which use the ctx only for allocation purposes. file: [2e2609cfdb] check-in: [c4354d5bb0] user: stephan branch: trunk, size: 6827
2013-07-24
21:20
Changed fsl_buffer_resize() semantics to more closely match blob_resize(), to simplify porting. Fixed broken arg check in fsl_init() when 2nd param was NULL. file: [9db03240ab] check-in: [44a026f377] user: stephan branch: trunk, size: 6859
16:09
Added DRH license header. More docs. file: [0797fb48df] check-in: [7aa2b4246d] user: stephan branch: trunk, size: 6870
13:42
refactoring and doc additions. file: [ce027196c6] check-in: [40c924afee] user: stephan branch: trunk, size: 6300
11:17
Moved fsl_appendf.h content into fossil2.h. file: [f2f0e59ec3] check-in: [9544d2c21a] user: stephan branch: trunk, size: 7328
05:30
Added amalgamation build. More work on the db API. file: [6ecb5b1c9f] check-in: [75ff0b452c] user: stephan branch: trunk, size: 10506
04:18
started adding the db API. file: [fa13f03db9] check-in: [c422d24c0c] user: stephan branch: trunk, size: 10302
02:31
Initial implementation of open-existing-repo and demonstration of fsl_err_set() and friends. file: [5d93e54148] check-in: [f1f1dbfceb] user: stephan branch: trunk, size: 9602
02:11
Started adding test code. Changed return semantics of fsl_err_set() and friends. file: [f8612d1734] check-in: [6be457cebb] user: stephan branch: trunk, size: 9433
2013-07-23
20:01
minor cleanups and additions. time for a pinball break. file: [ea9c354fb7] check-in: [12abd29051] user: stephan branch: trunk, size: 8462
17:27
minor cleanups. file: [eea3344b30] check-in: [ed77cdbe79] user: stephan branch: trunk, size: 8181
16:45
Added emacs/vim modelines. Re-indented for fv1 conventions. file: [2729e72d97] check-in: [60d011ad38] user: stephan branch: trunk, size: 8065
16:38
API renaming. Added initial draft interfaces for repo open/close. Added quick-n-dirty deps to the makefile. file: [5d4171ff86] check-in: [50378ed25f] user: stephan branch: trunk, size: 8748
16:24
Added fsl_ctx_err_set() and friends. file: [1a59458c51] check-in: [b619a2f858] user: stephan branch: trunk, size: 8784
16:06
s/fsl_appendf_appender/fsl_appendf_f/g, for consistency. file: [9737d45dbc] check-in: [8df7b328c9] user: stephan branch: trunk, size: 7655
16:02
Ported in/added various xxx_appendf() implementations, including fsl_mprintf() and friends. file: [8fba0c5ece] check-in: [87cf2a0d42] user: stephan branch: trunk, size: 7580
15:30
Moved public header(s) to include/fossil/. Ported in callback-using printf impl. (This code was originally stolen from sqlite3 back in 2008, actually.) file: [a95dc40904] check-in: [88a070017a] user: stephan branch: trunk, size: 5080
15:15
Started porting in fsl_buffer funcs from cwal. file: [5a9a421b29] check-in: [192c0735d2] user: stephan branch: trunk, size: 5073
14:52
Added fsl_output(), more docs. file: [db2216406c] check-in: [1cd76b4ac8] user: stephan branch: trunk, size: 3558
14:40
Added my trademarked 'empty initializers' to the various structs. file: [a5302c0a42] check-in: [46a9e10d49] user: stephan branch: trunk, size: 3324
13:56
Added: egg file: [09182fa880] check-in: [1f751d1ad3] user: stephan branch: trunk, size: 3279