atomically get latest and pending revisions