Generate revision text for docinfo.