cmd.range(changesetStart, annotateRevIndex);
cmd.set(cancellation);
cmd.set(new ProgressSupport.Sub(progress, 100));
//
// ReverseAnnotateInspector ai = new ReverseAnnotateInspector();
ForwardAnnotateInspector ai = new ForwardAnnotateInspector();
cmd.order(ai.iterateDirection());
//
cmd.executeAnnotate(ai);
cancellation.checkCancelled();
final int lastCsetWithFileChange;
Nodeid fileRev = repo.getManifest().getFileRevision(annotateRevIndex, df.getPath());
if (fileRev != null) {
lastCsetWithFileChange = df.getChangesetRevisionIndex(df.getRevisionIndex(fileRev));
} else {
lastCsetWithFileChange = annotateRevIndex;
}
ai.report(lastCsetWithFileChange, inspector, new ProgressSupport.Sub(progress, 100), cancellation);
} catch (HgRuntimeException ex) {
throw new HgLibraryFailureException(ex);
}
progress.done();
}