Programmatically use TortoiseSVN with C# or its related processes to check if a repository is up-to-date

青春壹個敷衍的年華 提交于 2019-12-22 11:10:30

问题


Is there a way to programmatically use TortoiseSVN with C# or its related processes to check if a repository is up-to-date?

(I can use System.Diagnostics.Process, but I don't want any GUI stuff to show.)

I don't have SVN.

It is open source... So I could go through all the code, but that seems like a pain.

Should I use [dllImport] to call one of the DLL files in the TortoiseSVN bin directory?

In a related problem I wanted to see if a folder was even a Subversion'ed folder. My solution to this was to first find if the folder existed, then to use subwcrev in the bin folder of TortoiseSVN. If the folder isn't a Subversion'ed folder, it would complain.


回答1:


You can check out sharpsvn: http://sharpsvn.open.collab.net/.

For your related problem - folders that are under subversion sourcecontrol have a (hidden) folder named .svn with subversion specific data inside. You might use the existence of this directory as a rudimentary check. Sharpsvn probably has better support for this.




回答2:


You might check SharpSvn




回答3:


SharpSVN



来源:https://stackoverflow.com/questions/6116176/programmatically-use-tortoisesvn-with-c-sharp-or-its-related-processes-to-check

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