0
我使用VS 2012,Microsoft.TeamFoundation.Client.dll 11.0(TFS API)和服务器TFS 2008。在TFS API(TFS 2008,VS 2012)中获取分支和合并历史记录
我已创建分公司
int changesetId = vcServer.CreateBranch(sourcePath, targetPath, VersionSpec.Latest);
Changeset changeset = vcServer.GetChangeset(changesetId);
changeset.Comment = comment;
changeset.Update();
我可以变更集列表
var ChangesetList = vcServer.QueryHistory(targetPath,
VersionSpec.Latest, 0, RecursionType.Full, "", versionFrom, VersionSpec.Latest,
Int32.MaxValue,
true, // the boolean "include changes" is taking the time... If you do not include the changes and only the metadata of the changesets the query is very fast
false).Cast<Changeset>();
我可以做结帐和签入关于分公司的文件,然后执行合并。
我很困惑如何获取关于分支机构历史(GetBranchHistory
)的好信息,合并历史记录(可能是QueryMergesWithDetails
),以及与QueryPendingSets
的差异。