public Tree() { _nodes = new Dictionary <IHash, Node>(); _branches = new Dictionary <IBranch, OrderedSet <Node> >(); _tags = new HashSet <ITag>(); _containedInBranch = new Dictionary <Node, IBranch>(); _pointingTags = new MultipleDictionary <Node, ITag>(); _pointingBranches = new MultipleDictionary <Node, IBranch>(); }
public FlowBranchesColorsAndRegices() { _typesToColors = new Dictionary <BranchLogicalType, Color> { { BranchLogicalType.Master, Color.FromArgb(82, 0, 198) } , { BranchLogicalType.MasterHotfix, Color.FromArgb(253, 89, 101) } , { BranchLogicalType.Release, Color.FromArgb(82, 195, 34) } , { BranchLogicalType.Integration, Color.FromArgb(127, 171, 232) } , { BranchLogicalType.Develop, Color.FromArgb(234, 175, 0) } , { BranchLogicalType.DevelopFeature, Color.FromArgb(186, 83, 27) } , { BranchLogicalType.WorkItem, Color.FromArgb(201, 130, 175) } }; _typesToRegices = new MultipleDictionary <BranchLogicalType, string> { { BranchLogicalType.Master, new[] { "^master$" } }, { BranchLogicalType.Develop, new[] { "^develop$" } } , { BranchLogicalType.DevelopFeature, new[] { "^dev", "-dev-" } } , { BranchLogicalType.Release, new[] { "^release", "-RC$" } } , { BranchLogicalType.MasterHotfix, new[] { "hotfix", "^master" } } , { BranchLogicalType.Integration, new[] { "^int" } } }; }