use of org.netbeans.lib.cvsclient.command.log.Revision in project intellij-community by JetBrains.
the class CvsChangeListsBuilder method revisionWrappersFromLog.
@Nullable
public List<RevisionWrapper> revisionWrappersFromLog(final LogInformationWrapper log) {
final String file = log.getFile();
if (!CvsChangeList.isAncestor(myRootPath, file)) {
return null;
}
final List<RevisionWrapper> result = new ArrayList<>();
for (Revision revision : log.getRevisions()) {
if (revision != null) {
if (CvsChangeList.DEAD_STATE.equals(revision.getState()) && revision.getMessage().contains(INITIALLY_ADDED_ON_BRANCH)) {
// the file is never actually deleted)
continue;
}
final String branchName = getBranchName(revision, log.getSymbolicNames());
result.add(new RevisionWrapper(file, revision, branchName));
}
}
return result;
}
Aggregations