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()));
}
} catch (PlasticException e) {
throw new RepositoryException(String.format(
"getOpenBranches: An error occurred when retrieving child branches of branch:%s",repositoryData.branch), e);
}