com.intellij.openapi.vcs.history.VcsAbstractHistorySession Java Examples

The following examples show how to use com.intellij.openapi.vcs.history.VcsAbstractHistorySession. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TFSHistoryProvider.java    From azure-devops-intellij with MIT License 6 votes vote down vote up
private static VcsAbstractHistorySession createSession(final VcsRevisionNumber currentRevisionNumber,
                                                       final List<TfsFileRevision> revisions,
                                                       final boolean isFile) {
    return new VcsAbstractHistorySession(revisions) {
        public VcsRevisionNumber calcCurrentRevisionNumber() {
            return currentRevisionNumber;
        }

        public HistoryAsTreeProvider getHistoryAsTreeProvider() {
            return null;
        }

        @Override
        public VcsHistorySession copy() {
            return createSession(currentRevisionNumber, revisions, isFile);
        }

        @Override
        public boolean isContentAvailable(final VcsFileRevision revision) {
            return isFile;
        }
    };
}
 
Example #2
Source File: TFSHistoryProvider.java    From azure-devops-intellij with MIT License 4 votes vote down vote up
public void reportAppendableHistory(final FilePath path, final VcsAppendableHistorySessionPartner partner) throws VcsException {
    final VcsHistorySession session = createSessionFor(path);
    partner.reportCreatedEmptySession((VcsAbstractHistorySession) session);
}
 
Example #3
Source File: VcsCacheableAnnotationProvider.java    From consulo with Apache License 2.0 4 votes vote down vote up
@javax.annotation.Nullable
FileAnnotation restore(final VcsAnnotation vcsAnnotation,
                       VcsAbstractHistorySession session,
                       String annotatedContent,
                       boolean forCurrentRevision, VcsRevisionNumber revisionNumber);