{
String project = commandLine.getValue(Options.PROJECT_OPTION);
String filename = commandLine.getValue(Options.FILE_OPTION);
File file = (File)ProjectUtils.getFile(project, filename);
LocalFileHistory history =
new LocalFileHistory(file, false /* include current */);
history.refresh(new NullProgressMonitor());
IFileRevision[] revisions = history.getFileRevisions();
Arrays.sort(revisions, new Comparator<IFileRevision>(){
public int compare(IFileRevision r1, IFileRevision r2){
return (int)(r2.getTimestamp() - r1.getTimestamp());
}
});