owncloud/core — pull request #924 by MTGap (2012-12-16 20:15:42+00:00)
Title: Change post_write hook to write for files_versions app

Listening to the post_write hook causes the files_versions app to store a copy of a newly uploaded file. Changing it to write will make the files_versions app only store the copy of a file right before it is changed. So, there won't be any duplicates.

This should also fix some performance problems with files_versions and external storage. The file cache in master is emitting post_write as it scans files, which means that all the files in external storage are being copied and stored as versions.