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()); }