Examples of GitSynchronizeDataSet


Examples of org.eclipse.egit.core.synchronize.dto.GitSynchronizeDataSet

      throws Exception {
    // when
    byte[] shortContent = "short content".getBytes("UTF-8");
    byte[] longContent = "very long long content".getBytes("UTF-8");
    GitSynchronizeData data = new GitSynchronizeData(repo, HEAD, HEAD, true);
    GitSynchronizeDataSet dataSet = new GitSynchronizeDataSet(data);
    GitResourceVariantComparator grvc = new GitResourceVariantComparator(
        dataSet);

    // given
    IFile local = mock(IFile.class);
View Full Code Here

Examples of org.eclipse.egit.core.synchronize.dto.GitSynchronizeDataSet

  private RemoteResourceMappingContext prepareContext(String srcRev,
      String dstRev) throws Exception {
    GitSynchronizeData gsd = new GitSynchronizeData(repo, srcRev, dstRev,
        true);
    GitSynchronizeDataSet gsds = new GitSynchronizeDataSet(gsd);
    GitResourceVariantTreeSubscriber subscriber = new GitResourceVariantTreeSubscriber(
        gsds);
    subscriber.init(new NullProgressMonitor());

    return new GitSubscriberResourceMappingContext(subscriber, gsds);
View Full Code Here

Examples of org.eclipse.egit.core.synchronize.dto.GitSynchronizeDataSet

  @Test
  public void shouldIgnoreEmptyRepositories() throws Exception {
    // given
    touchAndSubmit("second commit");
    GitSynchronizeDataSet gsds = new GitSynchronizeDataSet();
    gsds.add(new GitSynchronizeData(repo1, HEAD, HEAD + "^1", false));
    gsds.add(new GitSynchronizeData(repo2, HEAD, HEAD, false));

    // when
    GitModelRoot root = new GitModelRoot(gsds);

    // then
View Full Code Here

Examples of org.eclipse.egit.core.synchronize.dto.GitSynchronizeDataSet

    // when
    new Git(repo).commit().setAuthor("JUnit", "junit@egit.org")
        .setMessage("Initial commit").call();
    GitSynchronizeData data = new GitSynchronizeData(repo, HEAD, HEAD,
        false);
    GitSynchronizeDataSet dataSet = new GitSynchronizeDataSet(data);

    // given
    GitResourceVariantTree grvt = new GitTestResourceVariantTree(dataSet,
        null, null);
View Full Code Here

Examples of org.eclipse.egit.core.synchronize.dto.GitSynchronizeDataSet

      new ConnectProviderOperation(secondIProject, gitDir).execute(null);
      new Git(repo).commit().setAuthor("JUnit", "junit@egit.org")
          .setMessage("Initial commit").call();
      GitSynchronizeData data = new GitSynchronizeData(repo, HEAD, HEAD,
          false);
      GitSynchronizeDataSet dataSet = new GitSynchronizeDataSet(data);

      // given
      GitResourceVariantTree grvt = new GitTestResourceVariantTree(dataSet,
          null, null);
View Full Code Here

Examples of org.eclipse.egit.core.synchronize.dto.GitSynchronizeDataSet

    // when
    new Git(repo).commit().setAuthor("JUnit", "junit@egit.org")
        .setMessage("Initial commit").call();
    GitSynchronizeData data = new GitSynchronizeData(repo, HEAD, MASTER,
        false);
    GitSynchronizeDataSet dataSet = new GitSynchronizeDataSet(data);

    // given
    GitResourceVariantTree grvt = new GitRemoteResourceVariantTree(null,
        dataSet);
View Full Code Here

Examples of org.eclipse.egit.core.synchronize.dto.GitSynchronizeDataSet

        "class Main {}");
    new Git(repo).commit().setAuthor("JUnit", "junit@egit.org")
        .setMessage("Initial commit").call();
    GitSynchronizeData data = new GitSynchronizeData(repo, HEAD, MASTER,
        false);
    GitSynchronizeDataSet dataSet = new GitSynchronizeDataSet(data);
    GitSyncCache cache = GitSyncCache.getAllData(dataSet,
        new NullProgressMonitor());

    // given
    GitResourceVariantTree grvt = new GitRemoteResourceVariantTree(cache,
View Full Code Here

Examples of org.eclipse.egit.core.synchronize.dto.GitSynchronizeDataSet

    testRepo.appendContentAndCommit(iProject, file, "class Main {}",
        "initial commit");
    IFile mainJava = testRepo.getIFile(iProject, file);
    GitSynchronizeData data = new GitSynchronizeData(repo, HEAD, MASTER,
        false);
    GitSynchronizeDataSet dataSet = new GitSynchronizeDataSet(data);
    GitSyncCache cache = GitSyncCache.getAllData(dataSet,
        new NullProgressMonitor());

    // given
    GitResourceVariantTree grvt = new GitRemoteResourceVariantTree(cache,
View Full Code Here

Examples of org.eclipse.egit.core.synchronize.dto.GitSynchronizeDataSet

        Constants.R_HEADS + "test");
    testRepo.appendContentAndCommit(iProject, file, "// test",
        "first commit");
    GitSynchronizeData data = new GitSynchronizeData(repo, HEAD, MASTER,
        true);
    GitSynchronizeDataSet dataSet = new GitSynchronizeDataSet(data);
    GitSyncCache cache = GitSyncCache.getAllData(dataSet,
        new NullProgressMonitor());

    // given
    GitResourceVariantTree grvt = new GitBaseResourceVariantTree(cache,
View Full Code Here

Examples of org.eclipse.egit.core.synchronize.dto.GitSynchronizeDataSet

   */
  @Test
  public void queryHistoryThroughTeam() throws IOException, CoreException {
    GitSynchronizeData gsd = new GitSynchronizeData(
        testRepository.getRepository(), MASTER, BRANCH, false);
    GitSynchronizeDataSet gsds = new GitSynchronizeDataSet(gsd);
    GitResourceVariantTreeSubscriber subscriber = new GitResourceVariantTreeSubscriber(
        gsds);
    subscriber.init(new NullProgressMonitor());

    IDiff diff = subscriber.getDiff(iFile2);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.