Package com.codicesoftware.plastic.commontypes

Examples of com.codicesoftware.plastic.commontypes.BranchInfo


    }

    private String addCommitsInContinuousIntegrationMode(String lastVcsKeyBuilt, List<Commit> commits)
            throws RepositoryException {

        BranchInfo branchInfo = Utils.getBranchInfo(
                mRepositoryData.branch, mRepositoryData.repository, mRepositoryData.repositoryserver);
        String lastCsetOnRep = branchInfo.getChangeset();

        ChangesetInfo[] changesets = getChangesetsToBeCommited(branchInfo, lastVcsKeyBuilt);
        if (changesets.length == 0)
            return lastCsetOnRep;
View Full Code Here


    }

    private String addCommitsInTestBranchMode(String lastVcsKeyBuilt, List<Commit> commits)
            throws RepositoryException {

    BranchInfo firstCandidateBranch = pickFirstResolvedBranch();
        String lastCsetOnRep = firstCandidateBranch.getChangeset();
        mLastResolvedBranchSelectedMap.put(lastCsetOnRep, firstCandidateBranch);
        if (lastVcsKeyBuilt.equals(lastCsetOnRep)) {
      return lastVcsKeyBuilt;
    }
View Full Code Here

                {
                    public String call() throws Exception
                    {
                        WorkspaceManager.createWorkspace(workspaceFilePath);
                        String repSpec = Utils.getRepositorySpec(mRepositoryData);
                        BranchInfo lastSelectedBranch = mLastResolvedBranchSelectedMap.containsKey(vcsRevisionKey) ?
                                mLastResolvedBranchSelectedMap.get(vcsRevisionKey) : pickFirstResolvedBranch();

                        Utils.writeToFile(lastSelectedBranch.getFullBranchNameWithoutBranchPreffix(), "CurrentBranch.txt");
                        WorkspaceManager.updateWorkspace(
                                workspaceFilePath, repSpec, lastSelectedBranch.getFullBranchNameWithoutBranchPreffix(), vcsRevisionKey);
                        return vcsRevisionKey;
                    }
                });
        }
        catch (RepositoryException e)
View Full Code Here

    if (repName == null || repName.trim().length() == 0) {
      errorCollection.addError(Constants.PLASTIC_REPOSITORY, "The repository name must be specified");
    }

    try  {
            BranchInfo brInfo;
            if (branch.equals(Constants.BR_NAME))
                brInfo = Utils.getBranchInfo(Constants.MAIN, repName, repServer);
            else
                brInfo = Utils.getBranchInfo(branch, repName, repServer);
View Full Code Here

    }

    @NotNull
    public List<VcsBranch> getOpenBranches() throws RepositoryException {

        BranchInfo currentMainTrackedBranch = Utils.getBranchInfo(
                repositoryData.branch, repositoryData.repository, repositoryData.repositoryserver);
        List<VcsBranch> openBranches = new ArrayList<VcsBranch>();

        try {
            WhereClauseBuilder whereBuilder = new WhereClauseBuilder();
            whereBuilder.addClause("parent", "=", currentMainTrackedBranch.getFullBranchNameWithoutBranchPreffix());
            BranchInfo[] branchesByName = QueryCommands.GetBranches(Utils.getRepositorySpec(repositoryData), whereBuilder.getWhereString());
            log.debug("Getting open branches from branch"+ repositoryData.branch + ". Count: " + branchesByName.length);
            for(BranchInfo br : branchesByName) {
                openBranches.add(new VcsBranchImpl(br.getFullBranchNameWithoutBranchPreffix()));
            }
View Full Code Here

TOP

Related Classes of com.codicesoftware.plastic.commontypes.BranchInfo

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.