Expose rev_sha1/ar_sha1 to API (bug 21860)