如何读取使用sharpsvn客户端使用C#文件的每个修订? 未修订的数字,但该文件在每个版本的内容............
Answer 1:
您可以使用SvnClient.FileVersions这就像在描述类似的问题
public void WriteRevisions(SvnTarget target, SvnRevision from, SvnRevision to)
{
using(SvnClient client = new SvnClient())
{
SvnFileVersionsArgs ea = new SvnFileVersionsArgs
{
Start = from,
End = to
};
client.FileVersions(target, ea,
delegate(object sender2, SvnFileVersionEventArgs e)
{
Debug.WriteLine(e.Revision);
e2.WriteTo(...);
});
}
}
文章来源: How to read each revision of file using sharpsvn client using c#?