Examples of Branch


Examples of org.eclipse.orion.server.git.objects.Branch

      List<Ref> branches = new Git(db).branchList().call();
      JSONObject result = null;
      URI cloneLocation = BaseToCloneConverter.getCloneLocation(getURI(request), BaseToCloneConverter.BRANCH);
      for (Ref ref : branches) {
        if (Repository.shortenRefName(ref.getName()).equals(gitSegment)) {
          result = new Branch(cloneLocation, db, ref).toJSON();
          break;
        }
      }
      if (result == null) {
        String msg = NLS.bind("Branch {0} not found", gitSegment);
View Full Code Here

Examples of org.evolizer.versioncontrol.cvs.model.entities.Branch

     */
    @Test
    public void testDeleteBranch() throws Exception{

        Transaction t = sModelMapper.createTransaction(new Date(19847));
        Branch newBranch =
            sModelMapper.createBranch(
                    new Date(4562),
                    t,
                    "branch 2 creation",
                    sAuthorName,
                    "branch_2",
                    null,
                    "/branch2Path",
                    "/rootDir",
                    2,
                    5);

        sModelMapper.deleteBranch(5, sAuthorName, newBranch.getName());

        // Check the deleted branch was removed from to the related field
        Field branchesField = SVNModelMapper.class.getDeclaredField("fBranches");
        branchesField.setAccessible(true);
        HashMap<String, Branch> branches = (HashMap<String, Branch>) branchesField.get(sModelMapper);
View Full Code Here

Examples of org.fenixedu.academic.domain.Branch

    private String findGroup(final CurricularCourse curricularCourse, final DegreeModuleScope degreeModuleScope) {
        if (degreeModuleScope != null) {
            if (degreeModuleScope instanceof DegreeModuleScopeCurricularCourseScope) {
                final DegreeModuleScopeCurricularCourseScope degreeModuleScopeCurricularCourseScope =
                        (DegreeModuleScopeCurricularCourseScope) degreeModuleScope;
                final Branch branch = degreeModuleScopeCurricularCourseScope.getCurricularCourseScope().getBranch();
                return branch == null ? " " : branch.getName();
            } else {
                final DegreeModuleScopeContext degreeModuleScopeContext = (DegreeModuleScopeContext) degreeModuleScope;
                final Context context = degreeModuleScopeContext.getContext();
                return context.getParentCourseGroup().getName();
            }
View Full Code Here

Examples of org.jtalks.common.model.entity.Branch

    }
   
    @Test
    public void testDeleteAllBranches() throws NotFoundException {
        Section expectedSection = new Section(SECTION_NAME);
        expectedSection.addOrUpdateBranch(new Branch(null, null));
        expectedSection.addOrUpdateBranch(new Branch(null, null));
       
        when(sectionDao.isExist(SECTION_ID)).thenReturn(true);
        when(sectionDao.get(SECTION_ID)).thenReturn(expectedSection);
       
        Section actualSection = sectionService.deleteAllTopicsInSection(SECTION_ID);
View Full Code Here

Examples of org.jtalks.jcommune.model.entity.Branch

    }
   
    @Test
    public void markAllTopicsAsReadShouldMarkThemAndUpdatePage() throws NotFoundException {
        Long markedBranchId = 1L;
        Branch willBeMarkedBranch = new Branch("branch", "new branch");
        when(branchService.get(markedBranchId)).thenReturn(willBeMarkedBranch);
       
        String result = controller.markAllTopicsAsRead(markedBranchId);
       
        assertEquals(result, "redirect:/branches/" + String.valueOf(markedBranchId));
View Full Code Here

Examples of org.mindswap.pellet.tableau.branch.Branch

      // decrease branch id for each branch after the branch we're
      // removing
      // also need to change the dependency set for each label
      for( int i = branch.getBranch().getBranch(); i < branches.size(); i++ ) {
        // cast for ease
        Branch br = branches.get( i );
       
        DependencySet tDS = br.getTermDepends();
       
        // update the term depends in the branch
        if( tDS.getBranch() > branch.getBranch().getBranch() )
          tDS = tDS.copy( tDS.getBranch() - 1 );
 
        for( int j = branch.getBranch().getBranch(); j < kb.getABox().getBranches().size(); j++ ) {
          if( tDS.contains( j ) ) {
            tDS.remove( j );
            tDS.add( j - 1 );
          }
        }
 
        // also need to decrement the branch number
        br.setBranch( br.getBranch() - 1 );
        br.setTermDepends( tDS );
      }
 
      // remove the actual branch
      branches.remove( branch.getBranch() );
 
View Full Code Here

Examples of org.nlpcn.commons.lang.tire.domain.Branch

  private static void insertWord(WoodInterface forest, String temp, String[] param) {
    WoodInterface branch = forest;
    char[] chars = temp.toCharArray();
    for (int i = 0; i < chars.length; i++) {
      if (chars.length == i + 1) {
        branch.add(new Branch(chars[i], 3, param));
      } else {
        branch.add(new Branch(chars[i], 1, null));
      }
      branch = branch.get(chars[i]);
    }
  }
View Full Code Here

Examples of transientlibs.tex.Branch

        renderList.menus.clear();

        Detonator.INSTANCE.interfaceElementList.clear();
        Detonator.INSTANCE.interfaceElements.clear();

        Branch initBranch = new Branch();
        Tex.loadText("gui/" + fromFile);
        initBranch.processSilently();

        //Log.info("currently loaded: " + Detonator.INSTANCE.interfaceElements.values().size());
        for (IMarker m : Detonator.INSTANCE.interfaceElementList) {
            interfaceElements.add(m);
            renderList.add(m);
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.