@Override
public IncludedInDetail call() throws OrmException, NoSuchChangeException,
IOException, InvalidRevisionException {
control = changeControlFactory.validateFor(changeId);
final PatchSet patch =
db.patchSets().get(control.getChange().currentPatchSetId());
final Repository repo =
repoManager.openRepository(control.getProject().getNameKey());
try {
final RevWalk rw = new RevWalk(repo);
try {
rw.setRetainBody(false);
final RevCommit rev;
try {
rev = rw.parseCommit(ObjectId.fromString(patch.getRevision().get()));
} catch (IncorrectObjectTypeException err) {
throw new InvalidRevisionException();
} catch (MissingObjectException err) {
throw new InvalidRevisionException();
}