Exemple #1
0
        void Initialize(Version masterVersion, Version alphaVersion, 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;
            DevelopBranch       = new RepoBranch()
            {
                Version         = developVersion,
                Name            = "develop",
                Title           = BranchTitle.develop,
                Child           = AlphaBranch,
                RequiresPatches = false
            };
            AlphaBranch.Parent = DevelopBranch;

            Branches.Add(MasterBranch);
            Branches.Add(AlphaBranch);
            Branches.Add(DevelopBranch);
        }
Exemple #2
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);
        }