[SharpSvn]如何显示要提交的本地修改文件 [英] [SharpSvn] How to display local modified files to commit
本文介绍了[SharpSvn]如何显示要提交的本地修改文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我无法检索本地修改过的文件以进行提交。
一旦我提交所有将是在存储库中更新。
我想将修改后的文件和新添加的文件绑定到数据源控件。
基于已检查的文件只有我必须提交..
任何人都可以帮我吗?
Hi all,
I am unable to retrieve the local modified to files for to commit.
Once i commit all will be update in repository.
I want to bind the modified files and newly added files to data source control.
Based on checked files only i have to commit..
Can any one help me on this?
推荐答案
检查LocalContentStatus属性在状态上,这是一个例子:
Check the LocalContentStatus property on the statuses, here is an example:
var statusArgs = new SvnStatusArgs();
statusArgs.Depth = SvnDepth.Infinity;
statusArgs.RetrieveAllEntries = true;
Collection<SvnStatusEventArgs> statuses;
svnClient.GetStatus(@"C:\SVN\stuff\", statusArgs, out statuses);
foreach (SvnStatusEventArgs statusEventArgs in statuses)
{
if (statusEventArgs.LocalContentStatus == SvnStatus.Modified)
Console.WriteLine("Modified file: " + statusEventArgs.Path);
}
这篇关于[SharpSvn]如何显示要提交的本地修改文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文