Added more logs and error checks when checking revisions and diffs