remove all revision ranges except those absolutely neccessary