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

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

History for f-apps/f-revert.c

2022-01-07
06:28
typo file: [d094c1ee94] check-in: [d069d8d19f] user: bch branch: trunk, size: 3469
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: [73879f8e5f] check-in: [76d6359435] user: stephan branch: trunk, size: 3469
2021-12-15
04:21
More work on merge and adjacent code. Changed how fsl__ckout_clear_merge_state() works to attempt to enable partial reset when individual to-be-merged files are reverted. Whether the corresponding SQL is 100% semantically correct for the vmerge state remains to be seen, but so far, so good. See https://fossil-scm.org/forum/forumpost/f678085f79 for the discussion about those bits. file: [47e9d8304a] check-in: [4d88f6cbd6] user: stephan branch: trunk, size: 3481
2021-11-03
03:15
Removed some dangling debug output from f-revert. file: [274e89638b] check-in: [a8c009d569] user: stephan branch: trunk, size: 3632
02:51
f-revert can now report an error when it is passed an unmanaged file name. It now requires, however, passing in the new name, instead of the original name, when reverting a rename. Removed f-revert's dependency on fossil-internal.h. file: [824749c637] check-in: [7dd883be5e] user: stephan branch: trunk, size: 3706
02:28
Oops. file: [d191df56c3] check-in: [d4074d8d33] user: stephan branch: trunk, size: 7875
00:07
Another constness tweak, a doc fix, and added a TODO to f-revert. file: [712f59a38c] check-in: [af29e33252] user: stephan branch: trunk, size: 7873
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: [a4fd25a09d] check-in: [83917b7b45] user: stephan branch: trunk, size: 7391
2021-03-31
12:17
Renamed fsl_vfile_load_from_rid() to fsl_vfile_load(). Added fsl_vfile_unload() and fsl_vfile_unload_except(). f-revert can now revert files to specific checkin versions while retaining the current checkout version. file: [7862831858] check-in: [40fcc816f0] user: stephan branch: trunk, size: 7389
05:41
Minor f-apps updates. Reverted f-revert to using the filename variant of fsl_ckout_revert(), instead of the fsl_filename_to_vfile_ids() variant, because the former allows the user to revert renames using the old or new names, whereas the latter only sees the new names. Fixed a range error in fsl_stmt_bind_fmtv() when binding a string as blob, and that function's blob/string bindings no longer copy their arguments' memory. Changed fsl_stmt_bind_step() return semantics to enable fetching data. file: [e0bc58b0b8] check-in: [43d1902823] user: stephan branch: trunk, size: 4147
2021-03-28
15:15
fsl_ckout_revert() now optionally accepts a fsl_id_bag instead of a filename. Exposed fsl_filename_to_vfile_id(s)() to the public API. Added fcli_args_to_vfile_ids() and refactored f-revert to use that functionality. file: [0bfd006b09] check-in: [a527cc940a] user: stephan branch: trunk, size: 3547
2021-03-24
06:23
Refactored the remove-empty-dirs APIs a bit. Revert now tries to remove empty dirs of renames. Fixed path handling in revert - was using relative paths which only worked from the top of the tree. Added missing outer transaction in f-revert which could cause a failed revert to leave vfile in a partially-reverted state. file: [b7dc08e452] check-in: [62c2d986fb] user: stephan branch: trunk, size: 3483
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: [c9a863f870] check-in: [2cf2cebe3d] user: stephan branch: trunk, size: 3292
13:52
f-revert now requires at least one file/dir name, to avoid potential accidental data loss (since we have no undo support). file: [7d9bc85e69] check-in: [a465f04880] user: stephan branch: trunk, size: 3141
13:45
Added: Added f-revert, analog to (fossil revert). Fixed f-rm to handle the filename '.' sensibly. Numerous tweaks in adjacent code along the way. file: [cee758a784] check-in: [8cc33e4e8a] user: stephan branch: trunk, size: 2713