using a generator for grabbing the next revision, which is kinda cool