Beispiel #1
0
        public RepoBranch GetEpicRepoBranch(string[] branchNameSections)
        {
            RepoBranch branchBuffer = null;

            if (branchNameSections[0].ToUpper() == "EPIC")
            {
                if (branchNameSections[1].ToUpper() == "ADVANTAGE") // created from the develop branch
                {
                    branchBuffer = GetRepoBranch(BranchTitle.develop);
                }
            }
            return(branchBuffer);
        }
Beispiel #2
0
        void Initialize(Version masterVersion, Version alphaVersion, Version betaVersion, Version developVersion)
        {
            Branches = new List <RepoBranch>();

            MasterBranch = new RepoBranch()
            {
                Version         = masterVersion,
                Name            = "master",
                Title           = BranchTitle.master,
                RequiresPatches = true
            };

            AlphaBranch = new RepoBranch()
            {
                Version         = alphaVersion,
                Name            = String.Format("release-{0}.{1}", alphaVersion.Major, alphaVersion.Minor),
                Title           = BranchTitle.alpha,
                Child           = MasterBranch,
                RequiresPatches = true
            };
            MasterBranch.Parent = AlphaBranch;


            BetaBranch = new RepoBranch()
            {
                Version         = betaVersion,
                Name            = String.Format("{0}.{1}", alphaVersion.Major, alphaVersion.Minor),
                Title           = BranchTitle.beta,
                Child           = AlphaBranch,
                RequiresPatches = true
            };
            AlphaBranch.Parent = BetaBranch;

            DevelopBranch = new RepoBranch()
            {
                Version         = developVersion,
                Name            = "develop",
                Title           = BranchTitle.develop,
                Child           = AlphaBranch,
                RequiresPatches = false
            };
            BetaBranch.Parent = DevelopBranch;

            Branches.Add(MasterBranch);
            Branches.Add(AlphaBranch);
            Branches.Add(BetaBranch);
            Branches.Add(DevelopBranch);
        }