コード例 #1
0
ファイル: HistoryWalker.cs プロジェクト: monounity/GetGit
        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());
        }