Package org.eclipse.egit.core.synchronize.dto

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


  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

  @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

    // 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

      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

    // 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

        "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

    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

        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

   */
  @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

Related Classes of org.eclipse.egit.core.synchronize.dto.GitSynchronizeDataSet

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.