SharpSvn:我怎样才能看到更新()的结果呢? [英] SharpSvn: How can I see Update()'s result?

查看:600
本文介绍了SharpSvn:我怎样才能看到更新()的结果呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用一个简单的命令行SVN客户端,如果您运行更新你可以看到,被到工作拷贝所做的更改。

When using a simple command line svn client, if you run update you can see the changes that were made to your working copy.

我一直试图在SharpSvn(用C#,NET 3.5的),这样​​做,因为我需要看是否 Client.Update ()操作引起的文件删除,例如。结果
我试图使用 SvnUpdateResult ,但它返回一个项目,为整个文件夹,没有细节,我可以找到。我也无法找到任何看起来有用的 SvnUpdateArgs

I've been trying to do so in SharpSvn (with C#, .Net 3.5), because I need to see if the Client.Update() operation caused deletion of files, for example.
I tried using SvnUpdateResult, but it returns one item, for the entire folder, with no details I can find. I also can't find anything that looks useful in SvnUpdateArgs.

帮助吗?

感谢。

推荐答案

您可以订阅通知事件,在 SvnUpdateArgs 或客户端上实例本身:

You can subscribe to the Notify event, on SvnUpdateArgs or on the client instance itself:

SvnUpdateArgs ua = new SvnUpdateArgs();
ua.Notify += delegate(object sender, SvnNotifyEventArgs e)
        {
            Console.Write(e.Action);
            Console.WriteLine(e.FullPath);
        };

这篇关于SharpSvn:我怎样才能看到更新()的结果呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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