简体   繁体   中英

SharpSVN - Is there anyway to be notified of pending updates?

Is there any to be notified of pending updates (on the server) or do I need to poll for changes?

Ideally I don't want to poll, as this is inefficient waste of resources, both on the server and client.

There is no standard way for a server to contact individual clients... There are some standardized hooks. Google for svnpubsub .

A client really has to poll to know. svn status -u (SvnClient.Status(.., new SvnStatusArgs{RetrieveRemote=true},..) is the most efficient way to identify what incoming changes to expect. But the most efficient way to see if there are any changes would be to just obtain the last revision on the server using svn info URL (SvnClient.Info()).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM