Implementation
Write the new data to a temporary file before replacing the content file. Compare revisions when two editors submit overlapping changes.
Try it
Open two admin windows. Save from the first, then try to save the stale draft from the second.