Search in sources :

Example 1 with ChangeVisitor

use of com.intellij.history.core.changes.ChangeVisitor in project intellij-community by JetBrains.

the class ByteContentRetriever method collectChanges.

@Override
protected Pair<String, List<ChangeSet>> collectChanges() {
    final List<ChangeSet> result = new ArrayList<>();
    myVcs.accept(new ChangeVisitor() {

        @Override
        public void begin(ChangeSet c) throws StopVisitingException {
            if (c.affectsPath(myPath))
                result.add(c);
        }
    });
    return Pair.create(myPath, result);
}
Also used : ArrayList(java.util.ArrayList) ChangeVisitor(com.intellij.history.core.changes.ChangeVisitor) ChangeSet(com.intellij.history.core.changes.ChangeSet)

Aggregations

ChangeSet (com.intellij.history.core.changes.ChangeSet)1 ChangeVisitor (com.intellij.history.core.changes.ChangeVisitor)1 ArrayList (java.util.ArrayList)1