NacoWiki Versions
This plugin implements version history for documents.
It uses the properties
change log records to identify
versions.
Versions are stored either as full version strings or as
patches (the output of the diff
command) from the next
version.
The version file is in JSON format and contains a root
entry which is the latest base version for the file.
From then on there are different versions timestamped
matching the properties change log entries. These
time stamped entries are either a delta
or rewrite
.
If rewrite
it is just a full version text. Otherwise
delta
contains a diff from the next version. i.e. to
recreate this particular version, you need to patch the
next version (starting with root
and going backwards in
time).
- @phpcod Versions
- @todo The
root
entry could be eliminated by ensuring the newest delta is always arewrite
.
- plugins/Versions.php,18