Package org.eclipse.team.core.history

Examples of org.eclipse.team.core.history.IFileRevision


    final IFileHistory history = historyProvider.getFileHistoryFor(iFile1,
        IFileHistoryProvider.NONE, new NullProgressMonitor());
    assertNotNull(history);

    final IFileRevision[] revisions = history.getFileRevisions();
    IFileRevision branchFileRevision1 = null;
    IFileRevision masterFileRevision3 = null;
    IFileRevision masterFileRevision1 = null;
    for (IFileRevision revision : revisions) {
      final String revisionId = revision.getContentIdentifier();
      if (branchCommit1.getName().equals(revisionId))
        branchFileRevision1 = revision;
      else if (masterCommit3.getName().equals(revisionId))
View Full Code Here


    final IFileHistory history = historyProvider.getFileHistoryFor(iFile2,
        IFileHistoryProvider.NONE, new NullProgressMonitor());
    assertNotNull(history);

    final IFileRevision[] revisions = history.getFileRevisions();
    IFileRevision masterFileRevision3 = null;
    IFileRevision masterFileRevision2 = null;
    IFileRevision branchFileRevision2 = null;
    for (IFileRevision revision : revisions) {
      final String revisionId = revision.getContentIdentifier();
      if (masterCommit3.getName().equals(revisionId))
        masterFileRevision3 = revision;
      else if (masterCommit2.getName().equals(revisionId))
View Full Code Here

    subscriber.init(new NullProgressMonitor());

    IDiff diff = subscriber.getDiff(iFile2);
    assertTrue(diff instanceof IThreeWayDiff);

    IFileRevision sourceRevision = getSource(diff);
    IFileRevision destinationRevision = getDestination(diff);
    IFileRevision baseRevision = getBase(diff);

    assertRevisionMatchCommit(baseRevision, masterCommit2);
    assertRevisionMatchCommit(destinationRevision, branchCommit2);
    assertRevisionMatchCommit(sourceRevision, masterCommit3);
View Full Code Here

TOP

Related Classes of org.eclipse.team.core.history.IFileRevision

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.