Saving some code that might be useful for backups later.
Return last revision for each user who has edited a document.