【问题标题】:How to read each revision of file using sharpsvn client using c#?如何使用 c# 使用 sharpsvn 客户端读取文件的每个修订版?
【发布时间】:2009-12-08 02:30:44
【问题描述】:

如何使用sharpsvn客户端使用c#读取文件的每个修订版?不是修订号,而是每个修订中的文件内容............

【问题讨论】:

    标签: c# sharpsvn


    【解决方案1】:

    您可以像 similar question 中描述的那样使用 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(...);
                     });
        }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-27
      • 2023-03-13
      • 1970-01-01
      • 1970-01-01
      • 2011-06-24
      • 1970-01-01
      相关资源
      最近更新 更多