如何从SharpSVN获取未提交文件的列表 [英] How to get list of uncommitted files from SharpSVN

查看:371
本文介绍了如何从SharpSVN获取未提交文件的列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用SharpSvn,我如何获取需要提交的文件列表(如果您右键单击带有tortoisesvn的文件夹并点击提交,您将看到的列表)

Using SharpSvn, how can I get a list of files that need to be committed (the list that you would see if you right click on a folder with tortoisesvn and hit commit)

我尝试过:

        SharpSvn.SvnClient client = new SharpSvn.SvnClient();
        Collection<SvnListChangeListEventArgs> list;
        bool result = client.GetChangeList(@"C:\MyProjectPath", out list);

但是它似乎正在返回项目中每个文件的列表,而不仅仅是返回修改过的文件.

But it seems to be returning a list of every file in the project instead of just the modified ones.

推荐答案

您正在使用的功能用于 GetStatusStatus 调用.在这种情况下,您要检查LocalContentStatusLocalPropertyStatus

The function you're using is for the changelist feature. To see what files are changed use the GetStatus or Status calls. In this case you want to check the LocalContentStatus and LocalPropertyStatus

这篇关于如何从SharpSVN获取未提交文件的列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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