如何读取使用sharpsvn客户端使用C#文件的每个版本吗? [英] How to read each revision of file using sharpsvn client using c#?

查看:124
本文介绍了如何读取使用sharpsvn客户端使用C#文件的每个版本吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何读取使用sharpsvn客户端使用C#文件的每个版本吗?不是版本号,但该文件在每个版本的内容............

How to read each revision of file using sharpsvn client using c# ? Not the revision numbers but the content of the file in each revisions............

推荐答案

您可以使用SvnClient.FileVersions这就像在一个类似的问题

You can use SvnClient.FileVersions for this like described in a similar question

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

这篇关于如何读取使用sharpsvn客户端使用C#文件的每个版本吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆