Search in sources :

Example 1 with ChangeRevision

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;
}
Also used : RecentChange(com.intellij.history.core.revisions.RecentChange) ChangeRevision(com.intellij.history.core.revisions.ChangeRevision) Revision(com.intellij.history.core.revisions.Revision) ArrayList(java.util.ArrayList) ChangeRevision(com.intellij.history.core.revisions.ChangeRevision)

Aggregations

ChangeRevision (com.intellij.history.core.revisions.ChangeRevision)1 RecentChange (com.intellij.history.core.revisions.RecentChange)1 Revision (com.intellij.history.core.revisions.Revision)1 ArrayList (java.util.ArrayList)1