Exemplo n.º 1
0
        private static BranchHistoryTreeItem FindMergedItem(BranchHistoryTreeItem parent, int changeSetId)
        {
            foreach (BranchHistoryTreeItem item in parent.Children)
            {
                if (item.Relative.IsRequestedItem)
                    return item;

                var x = FindMergedItem(item, changeSetId);
                if (x != null)
                    return x;
            }
            return null;
        }
Exemplo n.º 2
0
        static void ShowChildren(BranchHistoryTreeItem parent)
        {
            foreach (BranchHistoryTreeItem item in parent.Children)
            {
                Utilities.OutputCommandString(string.Format("Root branched to {0}", item.Relative.BranchToItem.ServerItem));

                if (item.Children.Count > 0)
                {
                    foreach (BranchHistoryTreeItem child in item.Children)
                    {
                        ShowChildren(child);
                    }
                }
            }
        }