use of com.intellij.openapi.vcs.history.VcsRevisionDescription in project intellij-community by JetBrains.
the class SvnAnnotationIsClosedTest method assertRevision.
private void assertRevision(VirtualFile vf1, SvnDiffProvider diffProvider, final long number) {
final VcsRevisionDescription vf1Rev = diffProvider.getCurrentRevisionDescription(vf1);
Assert.assertEquals(number, ((SvnRevisionNumber) vf1Rev.getRevisionNumber()).getLongRevisionNumber());
}
use of com.intellij.openapi.vcs.history.VcsRevisionDescription in project intellij-community by JetBrains.
the class VcsContentAnnotationImpl method fileRecentlyChanged.
@Nullable
@Override
public VcsRevisionNumber fileRecentlyChanged(VirtualFile vf) {
final ProjectLevelVcsManager vcsManager = ProjectLevelVcsManager.getInstance(myProject);
final AbstractVcs vcs = vcsManager.getVcsFor(vf);
if (vcs == null)
return null;
if (vcs.getDiffProvider() instanceof DiffMixin) {
final VcsRevisionDescription description = ((DiffMixin) vcs.getDiffProvider()).getCurrentRevisionDescription(vf);
final Date date = description.getRevisionDate();
return isRecent(date) ? description.getRevisionNumber() : null;
}
return null;
}
use of com.intellij.openapi.vcs.history.VcsRevisionDescription in project intellij-community by JetBrains.
the class SvnAnnotationIsClosedTest method assertRevision.
private void assertRevision(VirtualFile vf1, SvnDiffProvider diffProvider, final long number) {
final VcsRevisionDescription vf1Rev = diffProvider.getCurrentRevisionDescription(vf1);
Assert.assertEquals(number, ((SvnRevisionNumber) vf1Rev.getRevisionNumber()).getLongRevisionNumber());
}
Aggregations