Check for rev_len not rev_sha1

Change-Id: Ida29357d1277ec1ddeada2aaca2d1b889ba742a8
Merge "Check for rev_len not rev_sha1"