use of com.intellij.history.core.revisions.ChangeRevision in project intellij-community by JetBrains.
the class LocalHistoryFacade method getRecentChanges.
public List<RecentChange> getRecentChanges(RootEntry root) {
List<RecentChange> result = new ArrayList<>();
for (ChangeSet c : myChangeList.iterChanges()) {
if (c.isContentChangeOnly())
continue;
if (c.isLabelOnly())
continue;
if (c.getName() == null)
continue;
Revision before = new ChangeRevision(this, root, "", c, true);
Revision after = new ChangeRevision(this, root, "", c, false);
result.add(new RecentChange(before, after));
if (result.size() >= 20)
break;
}
return result;
}
Aggregations