Fix revision comparison

The revision field is an option, not the revision itself.