Calculate file revision based on file content and export revision by callback for your custom useage