进行SharpSvn合并时如何忽略空格更改?

时间:2018-08-03 00:41:39

标签: c# svn sharpsvn

我有以下代码,并且希望在合并时忽略空格更改:

string folder2 = @"c:\folder";
Uri uri2 = new Uri("http://repo/branch");
ICollection<SvnRevisionRange> mergeRevisions = new Collection<SvnRevisionRange>();
SvnRevisionRange revRange = new SvnRevisionRange(2, 3);
mergeRevisions.Add(revRange);
var mergeArgs = new SvnMergeArgs();
client.Merge(folder2, uri2, mergeRevisions, mergeArgs);

1 个答案:

答案 0 :(得分:1)

多亏了royalTS的评论,我发现以下方法效果很好:

mergeArgs.MergeArguments.Add("-b");

mergeArgs.MergeArguments.Add("-w");