Login
All files named "f-apps/f-update.c"
Login

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

History for f-apps/f-update.c

2022-04-14
05:06
Fixed a segfault in f-ci and f-update caused by variadic args misuse. file: [f3cd0d1b5e] check-in: [3f43f99441] user: stephan branch: trunk, size: 11163
2022-04-10
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. file: [e71c28530c] check-in: [0afca69968] user: stephan branch: trunk, size: 11138
2021-12-30
05:37
Replaced f-apps fcli_setup() calls with fcli_setup_v2(). file: [d6b4e08bb8] check-in: [313b59841e] user: stephan branch: trunk, size: 10589
2021-12-21
08:28
Moved fossil-scm/fossil.h to ../libfossil.h so that client code can build from both the canonical tree and amalgamation using the same include name. file: [c5d9e4172b] check-in: [76d6359435] user: stephan branch: trunk, size: 10620
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: [3c991b2854] check-in: [83917b7b45] user: stephan branch: trunk, size: 10691
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: [98546eeaac] check-in: [c9fb1f972f] user: stephan branch: trunk, size: 10690
2021-03-24
23:17
f-update now runs in non-dry-run mode by default, as there's little chance of data loss and i keep forgetting to pass the flag to disable it, leading to confusion when recently-added files aren't in the filesystem afterwards. file: [127143551a] check-in: [8582be822e] user: stephan branch: trunk, size: 10658
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: [b6a9d48bdd] check-in: [2cf2cebe3d] user: stephan branch: trunk, size: 11005
2021-03-21
00:26
Consolidated checkout/update to both use fsl_ckup_fchange_e to report the type of change, allowing removal of several of the fsl_ckup_state members. Local uncommitted adds and removals are now propagated when updating. Various adjacent tweaks. file: [8eee92f760] check-in: [1efb02180b] user: stephan branch: trunk, size: 11005
2021-03-20
21:36
Minor restructuring of the fcli struct. file: [65b7ce1c5a] check-in: [436ae2c47f] user: stephan branch: trunk, size: 11345
21:01
More work in/around the update process. f-update and f-co now only list "noteworthy" changes instead of all files unless the new -Q|--not-quiet flag is used. file: [559c36fdba] check-in: [0815bc50d7] user: stephan branch: trunk, size: 11334
18:52
First-ever f-update worked (in a test tree, of course). Still tons and tons of testing to do, and fix the broken removal of empty dirs after update, but baby steps have been made. file: [fddc31960d] check-in: [29fbb8bbd9] user: stephan branch: trunk, size: 10797
09:05
Barring one missing piece of to-port infrastructure and a boatload of testing, the update mechanism is in place and seems to be doing its thing. file: [6d59d3e827] check-in: [9b9b989b2c] user: stephan branch: trunk, size: 10962
00:35
More work on the update op. file: [485b345c93] check-in: [34f0c94b79] user: stephan branch: trunk, size: 10084
2021-03-19
10:01
fsl_ckout_manifest_write() now deletes the manifest files which it does not create unless they are part of the current checkout. More work on/towards the update op. file: [7403f33cd5] check-in: [9d86e51a31] user: stephan branch: trunk, size: 8620
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: [472c160c51] check-in: [6ceda397ad] user: stephan branch: trunk, size: 10713
05:19
Added fsl_ckout_write_manifest() to optionally write out the (manifest, manifest.uuid, manifest.tags) files for a checkout. fsl_ckout_calc_update_version(): removed the preferLatest parameter and it now reports the list of ambiguous candidates in its error string. file: [601ee30a45] check-in: [07fd8c1f33] user: stephan branch: trunk, size: 12453
00:54
Moved the calc-update-version algo from f-update.c into the library. file: [7fe0bbb0a8] check-in: [3ad694f967] user: stephan branch: trunk, size: 12353
00:30
More work on the 'update' infrastructure. Turns out we're still missing an important low-level bit or three. file: [57868d23a3] check-in: [c6dc2f9770] user: stephan branch: trunk, size: 14008
2021-03-18
23:36
f-update can now figure out which version to update to, but... baby steps. file: [e1940ba323] check-in: [7a11d37185] user: stephan branch: trunk, size: 12481
19:19
Moved the code for listing ambiguous hash prefixes from f-resolve to fcli. More work on the infrastructure needed for f-update. file: [eb86271236] check-in: [b50971a43e] user: stephan branch: trunk, size: 10241
16:07
Added: Some minor API renaming for clarity and started work on an app for porting over the update op (noting that it's currently nothing more than a skeleton). Changed how fsl_repo_ckout_state reports filenames: ckout-relative instead of absolute seems more appropriate. Might want to include both, though. file: [ea94e6211b] check-in: [045532178f] user: stephan branch: trunk, size: 10470