Fossil

Timeline
Login

Timeline

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

About branch checkin-without-checkout

This branch is for the "checkin without a checkout" feature, a.k.a. "mini-checkin" or "mini-commit". It is a pared-down variant of the checkin command which supports adding or modifying only a single file, and it does so without the requirement of having a checkout database. The main purpose of this feature is to enable web-based editing of files, e.g. embedded documents, and its infrastructure is fully separated from its "control interface" - CLI or web input.

Discussion: https://fossil-scm.org/forum/forumpost/32929ec967

This feature is disabled by default, and enabling it requires setting a comma- or newline-delimited list of filename globs as the fileedit-glob repository setting (part of the "project" group of config options). Those patterns specify the whitelist of files which may be edited with this page. An empty list disables the feature and a single * enables it for all non-binary files. Binary files are rejected by the editor, regardless of the whitelist. The suggestion has been made for the page to offer the ability to upload new versions of binary files, and that will be investigated as soon as it itches someone enough to look into it.

51 check-ins related to "checkin-without-checkout"
2020-05-05
04:06
Initial work on ajaxifying /fileedit. Fetching content, preview, and diffs are ajax'd, but save is not yet. ... (check-in: 8edf9dbf user: stephan tags: fileedit-ajaxify)
2020-05-04
23:26
Moved some generic fileedit code to style.c. Refactored /fileedit to not require JS to update version info, making this impl pure no-JS. Now to ajaxify it... ... (Closed-Leaf check-in: 8d4ce834 user: stephan tags: checkin-without-checkout)
20:16
Added /fileedit links to /finfo and /artifact. ... (check-in: fe925e7d user: stephan tags: checkin-without-checkout)
17:48
Add the submit button IDs programmatically (was previously hand-coded), to avoid them getting out of sync with their enum. ... (check-in: 032a0326 user: stephan tags: checkin-without-checkout)
17:44
Added SBS/unified diff to /fileedit. ... (check-in: ae8e24d0 user: stephan tags: checkin-without-checkout)
16:22
Style improvements and code consolidation. ... (check-in: 67a2bfb0 user: stephan tags: checkin-without-checkout)
13:12
Added preview render mode selection list. ... (check-in: 65b6c01a user: stephan tags: checkin-without-checkout)
12:46
Implemented HTML-in-iframe preview. Related internal cleanups. ... (check-in: ac309281 user: stephan tags: checkin-without-checkout)
12:10
Implemented preview mode for plain text and wiki/embedded doc, but how to populate the necessary iframe for HTML preview, without a URL back to the preview content, eludes me. ... (check-in: 079030fa user: stephan tags: checkin-without-checkout)
2020-05-03
14:57
Moved /fileedit and friends to fileedit.c. ... (check-in: 6cdb091a user: stephan tags: checkin-without-checkout)
14:38
Removed a couple dangling undefs from the previous commit. ... (check-in: dcc97762 user: stephan tags: checkin-without-checkout)
12:21
New CX(...) macro for rendering HTTP reply text, as an alternative to the "@ ..." markup provided by translate.c. ... (check-in: 0d160f9f user: drh tags: checkin-without-checkout)
2020-05-02
22:34
Removed some irrelevant comments. ... (check-in: 7243aea1 user: stephan tags: checkin-without-checkout)
21:57
Fixed a double-free caused by refactoring. Was being triggered in web mode but not CLI mode, strangely enough, though the code was hit by both. Other minor cleanups and fixes. ... (check-in: 6f749dfb user: stephan tags: checkin-without-checkout)
20:52
Fixed copy/paste error which caused the comment text to get duplicated into the N-card. ... (check-in: 2ee46284 user: stephan tags: checkin-without-checkout)
20:46
Fixed a bogus bit of css. ... (check-in: b203f2e9 user: stephan tags: checkin-without-checkout)
17:50
Improved some labels and help text and corrected the 'hint' styling to encompass elements outside of the FORM element. ... (check-in: f41eb696 user: stephan tags: checkin-without-checkout)
17:41
Comment updates. ... (check-in: 43d6e3ca user: stephan tags: checkin-without-checkout)
16:48
Minor error message improvements. ... (check-in: 80345fd1 user: stephan tags: checkin-without-checkout)
16:43
Instead of injecting multiple mini-scripts, queue up script code and emit it in one anonymous function at the end. Update the version number and permalink after saving so that we're basing on the new version. ... (check-in: 6407b6ca user: stephan tags: checkin-without-checkout)
15:03
Added fileedit-glob setting (/fileedit whitelist) and honor it in /fileedit. Added mini-checkin options to specifically convert EOLs to Unix or Windows styles. /fileedit saving now more or less works, but still needs to update the 'r' value after editing or else we're stuck at the old parent version. ... (check-in: 33861414 user: stephan tags: checkin-without-checkout)
2020-05-01
14:22
Initial work on /fileedit page. First dry-run save was just performed. ... (check-in: fbd31f20 user: stephan tags: checkin-without-checkout)
07:47
Got basic /fileedit page skeleton in place. It can load/display a file, with some limits, but cannot yet do anything with it. ... (check-in: b5e3bc9e user: stephan tags: checkin-without-checkout)
07:33
Added quotes around the URLs passed to the browser for the ui command so that URL parameters containing an ampersand get passed on correctly. ... (check-in: 126d34fb user: stephan tags: checkin-without-checkout)
05:38
Mini-checkin now pre-allocates some memory for the output manifest. Internal doc updates. ... (check-in: bfe7750e user: stephan tags: checkin-without-checkout)
05:37
Added blob_reserve() for use with a manifest-generation optimization. ... (check-in: 972cc5f9 user: stephan tags: checkin-without-checkout)
05:00
Re-implemented and drastically simplified the mini-checkin F-card generator. ... (check-in: 39262b42 user: stephan tags: checkin-without-checkout)
2020-04-30
17:55
Corrected propagation of deleted-via-delta F-cards. Added option to save generated manifest (on success) to a file. General cleanups. ... (check-in: fcdd76f6 user: stephan tags: checkin-without-checkout)
16:14
Merged in trunk for related changes. ... (check-in: 03cce1c9 user: stephan tags: checkin-without-checkout)
16:09
Mini-checkin can now create deltas from deltas, inheriting the F-cards from the delta while using the same baseline as its parent delta. Honor the new forbid-delta-manifests config setting. ... (check-in: d8d9929c user: stephan tags: checkin-without-checkout)
15:58
Make manifest_file_mperm() parameter const. ... (check-in: 58600bc1 user: stephan tags: checkin-without-checkout)
15:29
Add the "forbid-delta-manifests" setting. ... (check-in: 44ac944a user: drh tags: trunk)
14:02
Prefer manifest_file_find() over manifest_file_seek(), for case-insensitivity. Added option to force creating a delta whenever it's possible, rather than just suggest it. ... (check-in: c3ae6b34 user: stephan tags: checkin-without-checkout)
13:20
File perms are now always taken from the local file. Added flag to allow addition of a new file (default is not to, for reasons explained in the comments). ... (check-in: c281a179 user: stephan tags: checkin-without-checkout)
11:53
Mini-checkin can now create a delta manifest if its parent is a baseline and a flag indicating a preference for delta manifests is set. ... (check-in: 96999974 user: stephan tags: checkin-without-checkout)
2020-04-29
14:43
Merged in trunk. ... (check-in: c06b2923 user: stephan tags: checkin-without-checkout)
14:36
fix for 'no repo' prompt in the shell for unnamed projects (/forumpost/387c0a76f9). ... (check-in: 2d9ad2db user: stephan tags: trunk)
14:24
Added support for optionally converting mini-commit file content to use the same EOL style as the previous version (HTML5 specifies that TEXTAREA form posts be normalized to CRLF). ... (check-in: 5a1a73c3 user: stephan tags: checkin-without-checkout)
14:24
Removed a Windows/Cygwin-only #if guard around blob_add_cr() because it's now optionally used by mini-commit. ... (check-in: f8c18060 user: stephan tags: checkin-without-checkout)
12:19
Now disallow mini-checkin if the datestamp is older than the parent unless --allow-older is used. ... (check-in: 0a0d96dd user: stephan tags: checkin-without-checkout)
11:17
Renamed the various "one" pieces to "mini", e.g. checkin_mini(). ... (check-in: d84c5149 user: stephan tags: checkin-without-checkout)
2020-04-28
16:10
Code reordering and formatting. ... (check-in: 2af79416 user: stephan tags: checkin-without-checkout)
15:23
Comments and formatting. ... (check-in: 1b253c23 user: stephan tags: checkin-without-checkout)
14:47
Added a TODO. ... (check-in: 3669e957 user: stephan tags: checkin-without-checkout)
14:27
Various unrelated improvements in the single-file commit process. Moved leaf-is-closed check into its own function (affects the commit command). ... (check-in: 3a714004 user: stephan tags: checkin-without-checkout)
11:45
Improved error message propagation and added several checkin flags. ... (check-in: 1d0cc125 user: stephan tags: checkin-without-checkout)
10:32
Reworked error reporting/propagation and added toggle to allow/disallow forking. ... (check-in: e9e68a6e user: stephan tags: checkin-without-checkout)
09:37
Accommodated return value semantics change. ... (check-in: 7e880c78 user: stephan tags: checkin-without-checkout)
08:48
More work/cleanup on the single-file commit. ... (check-in: 138c07be user: stephan tags: checkin-without-checkout)
2020-04-27
19:36
Initial infrastructure for "web commit". ... (check-in: cb4d48ac user: stephan tags: checkin-without-checkout)
2020-04-26
20:41
Fix overlength lines and commenting irregularities in http_ssl.c. No code changes. ... (check-in: 483ac3db user: drh tags: trunk)