Login
Timeline
Login

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

132 check-ins using file include/fossil-scm/fossil-auth.h version 1ebf227730

2021-03-15
03:35
Moved a couple functions out of the public API. check-in: 40c2c455fc user: stephan tags: trunk
03:28
f-parseparty now deletes tags related to things it's going to crosslink before it starts working. Added a missing transaction. check-in: dd742d955b user: stephan tags: trunk
2021-03-14
23:06
Fixed a doxygen warning. check-in: 14b4e8590b user: stephan tags: trunk
21:23
Moved some config-settings-related stuff out of the public API for the time being. check-in: 2c6c7eda48 user: stephan tags: trunk
16:00
Minor doc touchups. check-in: 954e16e804 user: stephan tags: trunk
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. check-in: a2cd19f640 user: stephan tags: trunk
11:48
Renamed fsl_repo_checkout_state::xState to extractState. check-in: 9c08a8a4ac user: stephan tags: trunk
2021-03-13
19:18
Doc touchups and replaced a few stray %d refs with % FSL_ID_T_PFMT. (Pedantic, i know, but it might as well be done right.) check-in: 6cb2db9cf2 user: stephan tags: trunk
19:17
R-card calculation now dies if it's asked to checksum a symlink, to avoid creating a potentially invalid R-card. (We don't do symlinks, and may never do them.) check-in: eb1693f394 user: stephan tags: trunk
19:14
f-resolve now lists matching UUIDs when given an ambiguous prefix. Currently it lists all, regardless of type, but that's up for reconsideration. check-in: 434eee4149 user: stephan tags: trunk
18:55
f-apps doc touchups. check-in: 451bd605b2 user: stephan tags: trunk
10:11
Doc tweaks and minor struct member refactoring. check-in: f0c03038ff user: stephan tags: trunk
09:46
Renamed an enum. Minor doc and formatting tweaks. check-in: efd3f4d510 user: stephan tags: trunk
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. check-in: c77e85e259 user: stephan tags: trunk
06:17
Minor fsl_cx_confirmer() API changes. Removed the extraneous xvfile temp table used by the checkout process and instead use a dual-versioned vfile table. check-in: e81048d148 user: stephan tags: trunk
05:27
Several minor changes moving us slightly closer to be able to add update support. check-in: 1329430a6a user: stephan tags: trunk
05:22
Added --timer flag to fcli to measure runtime from fcli_setup() until post-main() shutdown. check-in: 2d8c87e253 user: stephan tags: trunk
04:10
Added total/current file counters to fsl_repo_extract_state so that clients can calculate progress percentage. check-in: 356da76d92 user: stephan tags: trunk
04:08
Added s2.Buffer.sha3(). check-in: 44f7331517 user: stephan tags: trunk
01:12
Updated f-s2sh.s2 init script for s2sh2 internals. check-in: 8d497fd57b user: stephan tags: trunk
01:09
Swapped out f-s2sh's shell.c with shell2.c (s2sh2 instead of s2sh classic). check-in: e20cc9720f user: stephan tags: trunk
2021-03-12
19:56
Commented out an assert which prohibits running f-sanity on a non-leaf build. check-in: f2f1612a0c user: stephan tags: trunk
19:32
Merged in cx-scratchpad-rework. check-in: 178f36ed54 user: stephan tags: trunk
19:31
The hashing routines were responsible for the unexpected buffer resizing, as they were explicitly resizing their output buffers to fit. Closed-Leaf check-in: 06f5974d60 user: stephan tags: cx-scratchpad-rework
17:28
Added a new file which had gotten lost in local stash saves/pops. Removed now-incorrect assert(). check-in: 4b0a66807f user: stephan tags: cx-scratchpad-rework
17:26
Completely reworked how fsl_cx manages scratch buffers but it's leading, rather inexplicably, to double the number of allocs and memory use in f-sanity. Checking in due to paranoia of losing this work. check-in: 01c1cff578 user: stephan tags: cx-scratchpad-rework
13:48
Minor API renaming, for consistency. check-in: f2fc1f3efd user: stephan tags: trunk
13:47
fsl_deck_parse() now silently skips over F-cards for which fsl_is_reserved_fn() returns true, as fossil does the same thing since late 2020. check-in: 520d31d80a user: stephan tags: trunk
13:06
Moved some code around and renamed a struct member for consistency with similar structs. check-in: 9bd1cfea4b user: stephan tags: trunk
09:15
Minor refactoring in prep for upcoming changes. check-in: 888cb5cc24 user: stephan tags: trunk
2021-03-11
23:05
Doc updates. Changed default checkin deltaPolicy to 0. Corrected a falsehood about Chuck Norris. Refactored checkout's rm-empty-dirs bits into fsl_rm_empty_dirs(). Fixed mis-reset of fsl_checkout_file_add_opt::counts. Minor malloc optimization in the post-checkout file removal bits. check-in: fd313baef4 user: stephan tags: trunk
18:56
Minor doc updates and added a couple TODOs related removing now-unmanaged files after an rm op. check-in: 419099b063 user: stephan tags: trunk
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. check-in: 61d3e64e6f user: stephan tags: trunk
15:29
Added fsl_deck_clean2(). Minor iprovements in f-parseparty, most notably to run the leaf rebuild after crosslinking checkins and/or tags, to avoid having (only sometimes) incorrect is-leaf markings (the reason why that happens, and whether it's an actual mistake or a side-effect of unfortunate parse ordering) is unclear). Other trivial internal cleanups. check-in: 6bdb294442 user: stephan tags: trunk
03:58
Minor doc touchups and char-to-bool conversions. check-in: 8a393e5255 user: stephan tags: trunk
03:57
Updated s2 binding for the fsl_deck::F2==>F refactoring. check-in: c7702424bd user: stephan tags: trunk
2021-03-10
17:36
Minor fcli API usage modernization. check-in: c04ce8aaf1 user: stephan tags: trunk
17:00
Minor doc/help text cleanups. check-in: 801690e98c user: stephan tags: trunk
16:41
Refactored fsl_dircrawl_f() to take a fsl_dircrawl_state struct as an argument and added current recursion depth to the passed-on state. check-in: 4a70a0dd17 user: stephan tags: trunk
15:47
Added fsl_dircrawl() for recursively crawling directories and added recursive dir and ignore-glob support to f-add. fsl_buffer_reuse() now returns its argument. check-in: c1199e807f user: stephan tags: trunk
15:41
If fcli_end_of_main() sees that there is a non-0 result code but no message, it synthesizes a message. check-in: 86350ecd42 user: stephan tags: trunk
12:42
Ported in upstream fix [fossil:b491c196c23ec4a240f4]. check-in: 2706788d19 user: stephan tags: trunk
08:54
Corrected missing +x bit in manifests broken in the F-card refactoring. check-in: d0d4c78fb2 user: stephan tags: trunk
08:32
Merged in f-card-array branch. Not the huge performance win i was hoping for but an overall win. check-in: 0626035798 user: stephan tags: trunk
08:25
Renamed the 'F2' F-card temporary porting name back to F. Closed-Leaf check-in: 63e886fff0 user: stephan tags: f-card-array
08:06
New F-card list model is working but the savings for it are underwhelming to say the least. At most, 10-15% alloc count savings on f-parseparty runs, with a slightly higher RAM total. Disabled delta checksum self-test, as it's a big time hit and fossil also disables that by default. (Edit: but this changes cuts the time needed for f-parseparty to process the core fossil repo by a bit more than half. It's still dog slow compared to a fossil rebuild, though.) check-in: 2440c84b01 user: stephan tags: f-card-array
06:20
Lib compiles now but the f-apps, and maybe the other language bindings, are still out of date. Lol - that means i can't check this in with f-ci. check-in: e484d5f96e user: stephan tags: f-card-array
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. check-in: 725c13c0d0 user: stephan tags: f-card-array
2021-03-09
14:03
Fixed a memleak in f-tag. Added --tag flag to f-ci. Tightened validation of tags at output-time (as opposed to parse-time) such that it is no longer legal to add the same tag name/target combination twice in the same artifact, even if they have different types (add/cancel/propagate). check-in: 200bddbb8a user: stephan tags: trunk
06:30
Added a flag to tell fsl_checkin_commit() whether or not to scan vfile for changes, analog to the same option in fsl_repo_checkout(). A few char-to-bool conversions. check-in: 3bff6c7de8 user: stephan tags: trunk
06:06
Merged in confirmer-co branch. check-in: 28bcebca4e user: stephan tags: trunk
06:04
Re-added inadvertently-removed Makefile.in. Closed-Leaf check-in: 9261998d3b user: stephan tags: confirmer-co
06:01
Minor confirmer cleanups and docs. check-in: d58d30707f user: stephan tags: confirmer-co
05:17
It seems we just about have the confirmer bits working for f-co. Had to change the semantics of --keep, but the older semantics feel really weird. Needs a bit more testing. check-in: ed0fa2b56a user: stephan tags: confirmer-co
01:22
Fixed a couple broken error checks. f-co --quiet --verbose now lists only files which actually changed, rather than all files. check-in: 85113ee198 user: stephan tags: confirmer-co
01:07
Removed a stale historical java file. check-in: ba65bbe94e user: stephan tags: confirmer-co
00:13
Minor tweaks of the confirmer bits. check-in: 13fb58bfdd user: stephan tags: confirmer-co
2021-03-08
23:55
Minor cosmetic cleanups. check-in: ce584dc03b user: stephan tags: confirmer-co
23:42
Optimizations in fsl_repo_checkout() to reduce fsl_content_get() calls, only writing files which vfile says have changed. Cuts alloc counts by approx. 3-4x and memory cost by 5-8x in basic tests. f-co now has a blank status square for files which were not modified, to make it easier to spot the real changes. check-in: 735e9e32ab user: stephan tags: confirmer-co
19:36
Initial work on integrating fsl_cx_confirm() with the checkout process. It basically seems to work but has several notable TODOs and FIXMEs. check-in: 6dd8166303 user: stephan tags: confirmer-co
15:59
Improved, hopefully, the auto.def check for C99 by looking for __STDC_VERSION__. check-in: 05ec494ec4 user: stephan tags: trunk
15:14
Seem to have fixed the broken merge handling in checkin. Caused by prematurely clearing out the vmerge table. check-in: 96b46cc3f0 user: stephan tags: trunk
13:50
Merged inadvertent fork from remote BSD box. Edit: BUG: f-checkin did not close the merged-in branch, despite merging with --integrate. It did clear the vmerge table, though. Edit: fixed in [96b46cc3f0]. check-in: f4ef8f360f user: stephan tags: trunk
13:48
auto.def: iconv test failure is no longer fatal, per auto.def in fossil. Closed-Leaf check-in: 60b9efa18b user: stephan tags: trunk
13:23
Renamed FSL_CANSWER_xxx to FSL_CRESPONSE_xxx. Changed some queries from cached to non-cached. Added /*__func__()*/ to the end of many queries to make them easy to track down via sqlite trace output. check-in: c8b25fe30f user: stephan tags: trunk
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). check-in: 9a6bb6834f user: stephan tags: trunk
03:49
Internal tweaking of the removed-from-checkout file deletion bits. check-in: 3ebdc1dfba user: stephan tags: trunk
03:48
Resolved an intermittently flaky sanity check which relied on specific timing. Added a couple fsl_cx_stat2() tests. check-in: e6cab89089 user: stephan tags: trunk
03:26
Sped up fsl_is_locally_modified() for the common case by adding a file-size comparison before falling back to hash comparison. check-in: 53fb496dc8 user: stephan tags: trunk
2021-03-07
16:55
Added f-co to f-apps/index.md. check-in: 3a1a1c8dfa user: stephan tags: trunk
16:49
Minor internal cleanups. check-in: 7666cd3214 user: stephan tags: trunk
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. check-in: b5479cc3c6 user: stephan tags: trunk
13:40
Removed dead code. check-in: 26e2c2a962 user: stephan tags: trunk
13:00
Removed more long-since-unmaintained tcl/jni files. check-in: 94f38d439f user: stephan tags: trunk
12:40
Memleak fix. check-in: 1c829de1f1 user: stephan tags: trunk
12:35
Implemented f-co --manifest. check-in: 91a9c30303 user: stephan tags: trunk
11:48
Null pointer deref fix. check-in: 91aa67ba47 user: stephan tags: trunk
11:40
Removed dangling bits left over from the previous commit. check-in: 23a5dfe46a user: stephan tags: trunk
11:06
Removed the vtables for the fossil config settings handling. They're long-since unmaintained and the library is no longer going to enforce the fossil-specific list of config options. check-in: 3f606ecdf0 user: stephan tags: trunk
10:55
Minor doc cleanups and API renaming. check-in: 8425dbc02c user: stephan tags: trunk
10:34
Added --save flag to f-mfparse to store the deck into the repo. That was used to stuff a hand-crafted mass-closing control artifact into fossil: [https://fossil-scm.org/home/info/2e525856ec57bb9f]. Don't try that at home, please. check-in: 198dabd041 user: stephan tags: trunk
09:43
Renamed a cryptically-named struct member from fc to fCard. check-in: ae428e47b0 user: stephan tags: trunk
08:48
Moved some f-ci always-output into verbose-only output, which coincidentally uncovered... Fixed the duplicate crosslinking which was being performed via fsl_checkin_commit() and made fsl_deck_save() change how it crosslinks depending on whether fsl_crosslink_begin() is active, which (in turn) fixed the fsl_repo_has_mlink_mid() discrepancy vis a vis fossil for checkin crosslinking. check-in: 0c3df4194e user: stephan tags: trunk
08:27
Replaced Q-card magic values with an enum. check-in: b81f4c29c9 user: stephan tags: trunk
2021-03-06
17:35
fsl_checkout_changes_visit() now treats a callback return of FSL_RC_BREAK like most iteration API do. Doc touchups. check-in: 0bdf51b375 user: stephan tags: trunk
16:27
Improved handling of deleted-by-checkin files via fsl_repo_checkout() and their reporting via f-co. check-in: 038cd076ae user: stephan tags: trunk
11:29
fsl_repo_checkout() deletion of empty dirs now walks up parent dirs to catch those strays left over by the previous commit. To see this in action, do (f-co tip) then (f-co rid:1), which should leave an empty dir except for .fslckout. check-in: 6c174db6f3 user: stephan tags: trunk
11:06
fsl_repo_checkout(), when removing leftover files, now tries to prune empty dirs. It does not catch dirs which themselves contain no files (contain only other dirs), as vfile has no entry for such dirs. Solving that requires more dir name slicing-up. check-in: 682c42c3a9 user: stephan tags: trunk
2021-03-05
07:52
fsl_content_put_ex() automatically rejects any blobs over a certain size (close to 2GB) for compatibility with fossil, which has a hard-coded limit of 2GB via its use of int-sized numbers for all ranges and access to blobs. fsl_buffers may exceed that, but such blobs may not be put into the db, lest we add something to the repo which will cause on OOM error for fossil. check-in: 633bf431cd user: stephan tags: trunk
07:43
More char-to-bool conversions. Moved fsl_stmt_bind_fmt() into the public API and added a basic test for it. check-in: d386e0d741 user: stephan tags: trunk
06:00
f-open and f-co now (mostly) honor --quiet. f-co now deletes files which removed between the original and target checkin unless the --no-rm flag is used. f-co cowardly refuses to check out the same version over itself. BUG: i have seen a few instances where the vvar 'checkout' setting disappears, leading to later app calls saying it's 'not a checkout', but have yet to pin down the origin. check-in: da6bcc64ba user: stephan tags: trunk
05:58
fcli now rolls back any active transaction when it shuts down. check-in: bc58934765 user: stephan tags: trunk
05:14
Removed some unused files (coincidentally need deletions for testing). check-in: 0dcf7291aa user: stephan tags: trunk
04:51
Notes and assertions about F-card traversal not including F-cards with a NULL UUID (indicating that they were deleted in a delta manifest). check-in: 30b1a2435b user: stephan tags: trunk
04:29
More tinkering with the f-co/f-open-related infrastructure. check-in: 13194b49eb user: stephan tags: trunk
04:28
Added schema names to the various pragma SCHEMA.application_id calls. check-in: 5844dc0eeb user: stephan tags: trunk
01:01
Added dry-run mode to fsl_repo_checkout(). Minor cleanups in f-open and f-co. check-in: f54d7ff201 user: stephan tags: trunk
00:07
Got f-co working, but am not sure that the --keep semantics are useful. More refactoring in/around f-open and f-co. check-in: eeb7706e6e user: stephan tags: trunk
2021-03-04
22:46
Refactored fsl_repo_checkout() to take a different options type and callback, and provided that callback with more interesting state. Restored f-open functionally which was disabled due to the lack of that state. check-in: ea7a0da420 user: stephan tags: trunk
21:26
Upstream s2 fixes for clang warnings (one of which is absolutely bogus). check-in: d3e363479c user: stephan tags: trunk
21:16
Updated C++ binding for API changes. check-in: 0c114ca6be user: stephan tags: trunk
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. check-in: 5fd71c1b87 user: stephan tags: trunk
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. check-in: ea0bfdc56d user: stephan tags: trunk
19:12
fsl_repo_open_checkout() now chdir's back to its starting directory. check-in: fb7e54a710 user: stephan tags: trunk
19:06
Minor API tweaks. Corrected --setmtime handling of f-open (broken by my refactoring). check-in: 3e996ceab5 user: stephan tags: trunk
18:24
Renamed f-checkin to f-ci and f-checkout to f-co because the tab-completion conflicts are getting annoying :/. check-in: 932ec8ad51 user: stephan tags: trunk
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. check-in: 0e31c5674e user: stephan tags: trunk
17:45
f-open: removed unnecessary content load and added some library-level functions to help streamline transaction handling. check-in: 5c988bf424 user: stephan tags: trunk
16:54
Added fsl_file_exec_set() and changed f-open to use it for setting the +x bit. check-in: e57eeac51e user: stephan tags: trunk
15:12
Minor internal cleanups. Corrected hash handling of fsl_repo_import_blob(). check-in: 5e448f56bb user: stephan tags: trunk
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. check-in: d1428d5a93 user: stephan tags: trunk
12:28
Numerous cleanups and fixes in/around the infrastructure used by f-open. check-in: b67129bbb9 user: stephan tags: trunk
12:03
Removed the 2nd part of the system-level sqlite3 check. check-in: 191ba4272e user: stephan tags: trunk
11:22
Added f-open to the f-apps list. check-in: b0f07b73c9 user: stephan tags: trunk
10:29
Removed unused (and unplanned) option from the configure script for using a system-level libsqlite. check-in: e44b5a8c2c user: stephan tags: trunk
2021-03-03
17:11
Tinkering with the fcli_command help bits. check-in: 8dfc562e7c user: stephan tags: trunk
16:44
Restored f-sanity's -1 flag. check-in: 9fc41dba87 user: stephan tags: trunk
16:41
Renamed fsl_path API to fsl_vpath to avoid any confusion with fsl_pathfinder. check-in: a8d1262cc1 user: stephan tags: trunk
11:42
Renamed fsl_buffer_reset() to fsl_buffer_reuse() to try to reduce the confusion between its semantics contrasted with fsl_buffer_clear(). check-in: 0584c1b6e2 user: stephan tags: trunk
11:36
Added missing change-type values to fsl_checkout_changes_visit(), which could have triggered an assert(), and replaced the assert() with debug output which warns of the mismatch. check-in: eaaffd743b user: stephan tags: trunk
09:27
When creating a new checkout db via fsl_repo_open_checkout() we write default checkout=0, checkout-hash=NULL values so that downstream code does not see this as a non-repo when it cannot find those. check-in: e8b25ce3bc user: stephan tags: trunk
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. check-in: 2a04a6818c user: stephan tags: trunk
2021-03-02
14:47
Merged in open-ckout-wip. Corrected a broken assumption/assertion combination trigged by fsl_deck_R_set(). check-in: 6ce13d2392 user: stephan tags: trunk
14:00
Replaced an internal-data use with a public API call. Closed-Leaf check-in: df215ddcb5 user: stephan tags: open-ckout-wip
12:39
Setting config vars in repo.config now sets the mtime to now(). check-in: ac329b2eed user: stephan tags: open-ckout-wip
11:53
Replaced hard tabs. Fixed corrupted dir name (uninitialized var). check-in: 4216a1dcd3 user: stephan tags: open-ckout-wip
10:32
A round of minor cleanups in getting f-open working for me. Time for a break, though. check-in: ba432bca3a user: stephan tags: open-ckout-wip
09:48
Remove an unneeded(?) parameter from fsl_vfile_load_from_rid(). check-in: 0ba7388df1 user: stephan tags: open-ckout-wip
09:18
Temporary workarounds for set-but-not-yet-used var warnings. check-in: 06f1db287f user: stephan tags: open-ckout-wip
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. check-in: 4897fa7285 user: mark tags: open-ckout-wip
08:41
Minor doc improvement. check-in: 3c7f48ce4d user: stephan tags: trunk
2021-03-01
16:21
Arguably a typo fix in the new header. Thank goodness for stream editors. check-in: 386316db07 user: stephan tags: trunk