Esempio n. 1
0
        public IEnumerable <ITFVCBranchObject> ListBranches(string projectName)
        {
            var branchObjects = _versionControlService.QueryRootBranchObjects(TFVCRecursionType.Full);

            var result = new List <ITFVCBranchObject>();

            foreach (var branchObject in branchObjects)
            {
                var ro = branchObject.Properties.RootItem;

                if (!ro.IsDeleted && ro.Item.Replace(@"$/", "").StartsWith(projectName + @"/"))
                {
                    result.Add(branchObject);
                }
            }

            return(result);
        }