Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 修订版中的SharpSVN和新/修改文件_C#_Sharpsvn - Fatal编程技术网

C# 修订版中的SharpSVN和新/修改文件

C# 修订版中的SharpSVN和新/修改文件,c#,sharpsvn,C#,Sharpsvn,如何获取在特定版本中添加或修改的所有文件(仅路径/名称)的列表?您可以使用它。只需确保它只检索一个版本,方法是指定一个narror版本范围,如下面代码中所示 using (SvnClient client = new SvnClient()) { client.Log( reposUri, new SvnLogArgs {Range = new SvnRevisionRange(9999, 9999)}, (o, e) =>

如何获取在特定版本中添加或修改的所有文件(仅路径/名称)的列表?

您可以使用它。只需确保它只检索一个版本,方法是指定一个narror版本范围,如下面代码中所示

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