return (VcsRevisionNumber.NULL == state.workingRevision) ? null : state.workingRevision;
}
private List<VcsFileRevision> getRevisions(FilePath filePath) {
final ViewMemberHistoryAPICommand command =
new ViewMemberHistoryAPICommand(new ArrayList<VcsException>(), vcs, filePath.getPath());
command.execute();
if (command.foundError()) {
for (VcsException error : command.errors) {
if (GetRevisionInfo.NOT_A_MEMBER.equals(error.getMessage())) {
Runnable runnable = new Runnable() {
public void run() {
Messages.showMessageDialog("Not (or not any more) a member", "title",
Messages.getInformationIcon());
}
};
MksVcs.invokeLaterOnEventDispatchThread(runnable);
} else {
LOGGER.warn(error);
}
}
}
final List<MksMemberRevisionInfo> revisions = command.getRevisionsInfo();
final ArrayList<VcsFileRevision> vcsRevisions = new ArrayList<VcsFileRevision>(revisions.size());
for (MksMemberRevisionInfo revision : revisions) {
vcsRevisions.add(new MksVcsFileRevision(vcs, filePath, revision));
}
return vcsRevisions;