add Revision.equals()

This is not a git object, this is java object. If some routine create object with other branches they must not be the same. They must have valid hash and equals.