如何获取已在特定修订中添加或修改的所有文件(仅限路径/名称)的列表?
答案 0 :(得分:5)
您可以使用SvnClient.Log()
。只需确保它只通过指定一个类似于下面代码中的恐怖修订范围来检索单个修订版
using (SvnClient client = new SvnClient())
{
client.Log(
reposUri,
new SvnLogArgs {Range = new SvnRevisionRange(9999, 9999)},
(o, e) =>
{
foreach (SvnChangeItem changeItem in e.ChangedPaths)
{
Console.WriteLine(
string.Format(
"{0} {1} {2} {3}",
changeItem.Action,
changeItem.Path,
changeItem.CopyFromRevision,
changeItem.CopyFromPath));
}
});
}