List of usage examples for org.eclipse.jgit.lib TagBuilder getObjectId
public ObjectId getObjectId()
From source file:org.eclipse.egit.ui.test.team.actions.CompareActionsTest.java
License:Open Source License
@BeforeClass public static void setup() throws Exception { repositoryFile = createProjectAndCommitToRepository(); Repository repo = lookupRepository(repositoryFile); perspective = bot.activePerspective(); bot.perspectiveById("org.eclipse.pde.ui.PDEPerspective").activate(); TagBuilder tag = new TagBuilder(); 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); commitOfTag = tag.getObjectId(); TagOperation top = new TagOperation(repo, tag, false); top.execute(null);/* www . j av a 2 s.c o m*/ touchAndSubmit(null); RepositoriesViewLabelProvider provider = GitRepositoriesViewTestUtils.createLabelProvider(); // LOCAL_BRANCHES = provider.getText(new LocalNode(new RepositoryNode( // null, repo), repo)); TAGS = provider.getText(new TagsNode(new RepositoryNode(null, repo), repo)); waitInUI(); }
From source file:org.eclipse.egit.ui.test.team.actions.ReplaceActionsTest.java
License:Open Source License
@BeforeClass public static void setup() throws Exception { repositoryFile = createProjectAndCommitToRepository(); Repository repo = lookupRepository(repositoryFile); perspective = bot.activePerspective(); bot.perspectiveById("org.eclipse.pde.ui.PDEPerspective").activate(); TagBuilder tag = new TagBuilder(); 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); commitOfTag = tag.getObjectId(); TagOperation top = new TagOperation(repo, tag, false); top.execute(null);/*w w w.ja va 2 s . c o m*/ touchAndSubmit(null); waitInUI(); }