Fossil

Timeline
Login

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: 8edf9dbfc2 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: 8d4ce834ed user: stephan tags: checkin-without-checkout)
20:16
Added /fileedit links to /finfo and /artifact. ... (check-in: fe925e7d6d 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: 032a0326e8 user: stephan tags: checkin-without-checkout)
17:44
Added SBS/unified diff to /fileedit. ... (check-in: ae8e24d021 user: stephan tags: checkin-without-checkout)
16:22
Style improvements and code consolidation. ... (check-in: 67a2bfb0dc user: stephan tags: checkin-without-checkout)
13:12
Added preview render mode selection list. ... (check-in: 65b6c01afd user: stephan tags: checkin-without-checkout)
12:46
Implemented HTML-in-iframe preview. Related internal cleanups. ... (check-in: ac309281e6 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: 079030faaf user: stephan tags: checkin-without-checkout)
2020-05-03
14:57
Moved /fileedit and friends to fileedit.c. ... (check-in: 6cdb091adb user: stephan tags: checkin-without-checkout)
14:38
Removed a couple dangling undefs from the previous commit. ... (check-in: dcc977628f 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: 0d160f9fa8 user: drh tags: checkin-without-checkout)
2020-05-02
22:34
Removed some irrelevant comments. ... (check-in: 7243aea14a 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: 6f749dfbc8 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: 2ee462843a user: stephan tags: checkin-without-checkout)
20:46
Fixed a bogus bit of css. ... (check-in: b203f2e967 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: f41eb6964c user: stephan tags: checkin-without-checkout)
17:41
Comment updates. ... (check-in: 43d6e3caf2 user: stephan tags: checkin-without-checkout)
16:48
Minor error message improvements. ... (check-in: 80345fd14e 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: 6407b6ca37 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: 33861414ae 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: fbd31f2049 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: b5e3bc9e41 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: 126d34fb32 user: stephan tags: checkin-without-checkout)
05:38
Mini-checkin now pre-allocates some memory for the output manifest. Internal doc updates. ... (check-in: bfe7750e94 user: stephan tags: checkin-without-checkout)
05:37
Added blob_reserve() for use with a manifest-generation optimization. ... (check-in: 972cc5f9ac user: stephan tags: checkin-without-checkout)
05:00
Re-implemented and drastically simplified the mini-checkin F-card generator. ... (check-in: 39262b420a 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: fcdd76f6fb user: stephan tags: checkin-without-checkout)
16:14
Merged in trunk for related changes. ... (check-in: 03cce1c977 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: d8d9929c40 user: stephan tags: checkin-without-checkout)
15:58
Make manifest_file_mperm() parameter const. ... (check-in: 58600bc1a5 user: stephan tags: checkin-without-checkout)
15:29
Add the "forbid-delta-manifests" setting. ... (check-in: 44ac944a98 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: c3ae6b3496 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: c281a179c0 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: 9699997444 user: stephan tags: checkin-without-checkout)
2020-04-29
14:43
Merged in trunk. ... (check-in: c06b292365 user: stephan tags: checkin-without-checkout)
14:36
fix for 'no repo' prompt in the shell for unnamed projects ([https://fossil-scm.org/forum/forumpost/387c0a76f9|/forumpost/387c0a76f9]). ... (check-in: 2d9ad2dbb9 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: 5a1a73c356 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: f8c1806047 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: 0a0d96dd42 user: stephan tags: checkin-without-checkout)
11:17
Renamed the various "one" pieces to "mini", e.g. checkin_mini(). ... (check-in: d84c514916 user: stephan tags: checkin-without-checkout)
2020-04-28
16:10
Code reordering and formatting. ... (check-in: 2af794163c user: stephan tags: checkin-without-checkout)
15:23
Comments and formatting. ... (check-in: 1b253c23de user: stephan tags: checkin-without-checkout)
14:47
Added a TODO. ... (check-in: 3669e957a5 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: 3a71400423 user: stephan tags: checkin-without-checkout)
11:45
Improved error message propagation and added several checkin flags. ... (check-in: 1d0cc12583 user: stephan tags: checkin-without-checkout)
10:32
Reworked error reporting/propagation and added toggle to allow/disallow forking. ... (check-in: e9e68a6e01 user: stephan tags: checkin-without-checkout)
09:37
Accommodated return value semantics change. ... (check-in: 7e880c7898 user: stephan tags: checkin-without-checkout)
08:48
More work/cleanup on the single-file commit. ... (check-in: 138c07be85 user: stephan tags: checkin-without-checkout)
2020-04-27
19:36
Initial infrastructure for "web commit". ... (check-in: cb4d48ac05 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: 483ac3db83 user: drh tags: trunk)