add Revision.equals()

Annotate with @Notnull or with @CheckForNull if you plan keep if check below.