bin/xbps-checkvers: take reverts field in account
xbps-checkvers: add tests.