SharpSvn: How can I see Update()'s result?

旧城冷巷雨未停 提交于 2019-11-30 09:20:55

问题


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

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.

Help please?

Thanks.


回答1:


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


来源:https://stackoverflow.com/questions/3767081/sharpsvn-how-can-i-see-updates-result

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!