Package org.eclipse.egit.core.op

Examples of org.eclipse.egit.core.op.TagOperation.execute()


    tag.setTag("SomeTag");
    tag.setTagger(RawParseUtils.parsePersonIdent(TestUtil.TESTAUTHOR));
    tag.setMessage("I'm just a little tag");
    tag.setObjectId(repo.resolve(repo.getFullBranch()), Constants.OBJ_COMMIT);
    TagOperation top = new TagOperation(repo, tag, false);
    top.execute(null);
    touchAndSubmit(null);
  }

  @Test
  public void testTagDialogShowExistingTags() throws Exception {
View Full Code Here


    newTag.setTagger(RawParseUtils.parsePersonIdent(TestUtils.AUTHOR));
    newTag.setObjectId(repository1.getRepository()
        .resolve("refs/heads/master"), Constants.OBJ_COMMIT);
    TagOperation top = new TagOperation(repository1.getRepository(),
        newTag, false);
    top.execute(new NullProgressMonitor());
    assertFalse("Tags should not be empty", repository1.getRepository()
        .getTags().isEmpty());

    try {
      top.execute(null);
View Full Code Here

    top.execute(new NullProgressMonitor());
    assertFalse("Tags should not be empty", repository1.getRepository()
        .getTags().isEmpty());

    try {
      top.execute(null);
      fail("Expected Exception not thrown");
    } catch (CoreException e) {
      // expected
    }
View Full Code Here

      // expected
    }

    top = new TagOperation(repository1.getRepository(), newTag, true);
    try {
      top.execute(null);
      fail("Expected Exception not thrown");
    } catch (CoreException e) {
      // expected
    }
    Ref tagRef = repository1.getRepository().getTags().get("TheNewTag");
View Full Code Here

        repository1.getRepository().resolve(tagRef.getName()));

    newTag.setMessage("Another message");
    assertFalse("Messages should differ", tag.getFullMessage().equals(
        newTag.getMessage()));
    top.execute(null);
    tag = walk.parseTag(
        repository1.getRepository().resolve(tagRef.getName()));
    assertTrue("Messages be same", tag.getFullMessage().equals(
        newTag.getMessage()));
  }
View Full Code Here

    tag.setMessage("I'm just a little tag");
    tag.setObjectId(repo.resolve(repo.getFullBranch()),
        Constants.OBJ_COMMIT);
    commitOfTag = tag.getObjectId();
    TagOperation top = new TagOperation(repo, tag, false);
    top.execute(null);
    touchAndSubmit(null);

    RepositoriesViewLabelProvider provider = GitRepositoriesViewTestUtils
        .createLabelProvider();
    // LOCAL_BRANCHES = provider.getText(new LocalNode(new RepositoryNode(
View Full Code Here

    tag.setTagger(RawParseUtils.parsePersonIdent(TestUtil.TESTAUTHOR));
    tag.setMessage("I'm just a little tag");
    tag.setObjectId(repo.resolve(repo.getFullBranch()),
        Constants.OBJ_COMMIT);
    TagOperation top = new TagOperation(repo, tag, false);
    top.execute(null);
    touchAndSubmit(null);

    RepositoriesViewLabelProvider provider = GitRepositoriesViewTestUtils
        .createLabelProvider();
    LOCAL_BRANCHES = provider.getText(new LocalNode(new RepositoryNode(
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.