public Branch(BranchMapping mapping, BranchMapping parent, BranchMapping mergeFrom, IDictionary <string, IItem> paths, IEnumerable <IChange> changes) { Mapping = mapping; Parent = parent; MergeFrom = mergeFrom; Paths = paths; Changes = changes; }
private BranchMapping GetParentBranch(IChangeset changeset, BranchMapping mapping) { if (mapping.Name == "master") { return(null); } var tfsPath = _versionControlServer.GetBranchParentPath(mapping.TfsPath, changeset.ChangesetId); return(tfsPath == null ? null : _branchMappings.Where(m => m.Match(tfsPath)).FirstOrDefault()); }
private IDictionary <string, IItem> GetExpectedChangesetPaths(IChangeset changeset, BranchMapping mapping) { var itemSet = _versionControlServer.GetItems(mapping.TfsPath, changeset.Version); return(itemSet.ToDictionary(i => i.ServerItem, i => i)); }
public Branch(BranchMapping mapping) { Mapping = mapping; }