public static function newLegacyAdapter(DifferentialRevision $revision, DifferentialDiff $diff)
 {
     $object = new HeraldDifferentialRevisionAdapter();
     // Reload the revision to pick up relationship information.
     $revision = id(new DifferentialRevisionQuery())->withIDs(array($revision->getID()))->setViewer(PhabricatorUser::getOmnipotentUser())->needRelationships(true)->needReviewerStatus(true)->executeOne();
     $object->revision = $revision;
     $object->setDiff($diff);
     return $object;
 }