Beispiel #1
0
 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;
 }
Beispiel #2
0
        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());
        }
Beispiel #3
0
        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));
        }
Beispiel #4
0
 public Branch(BranchMapping mapping)
 {
     Mapping = mapping;
 }