开发者

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

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 pr开发者_如何学Gooblem 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.


You might check SharpSvn


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.


SharpSVN

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜