Api for working with revs