问题描述
有没有一种方法以编程方式使用TortoiseSVN用C#或与其相关的进程,以检查是否存储库是最新的最新的?
Is there a way to programmatically use TortoiseSVN with C# or its related processes to check if a repository is up-to-date?
(我可以使用系统。 Diagnostics.Process,但我不希望任何东西GUI显示。)
(I can use System.Diagnostics.Process, but I don't want any GUI stuff to show.)
我没有SVN。
它是开源的。所以我可以去通过所有的代码,但是这似乎是一个痛苦。
It is open source... So I could go through all the code, but that seems like a pain.
我应该使用函数[DllImport]调用在TortoiseSVN的bin目录中的DLL文件中的一个?
Should I use [dllImport] to call one of the DLL files in the TortoiseSVN bin directory?
在一个相关的问题,我想看看,如果一个文件夹是甚至Subversion'ed文件夹。我对这个解决方案是先找到如果文件夹存在,然后在TortoiseSVN中的bin文件夹使用subwcrev。如果文件夹不是Subversion'ed文件夹,它会抱怨
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.
推荐答案
您可以检查出sharpsvn:的。
You can check out sharpsvn: http://sharpsvn.open.collab.net/.
有关您的相关问题 - 正在颠覆sourcecontrol有一个名为.svn文件里面颠覆的具体数据(隐藏)文件夹中的文件夹。您可以使用此目录的存在作为基本检查。 Sharpsvn可能有这个更好的支持。
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.
这篇关于编程使用TortoiseSVN用C#或与其相关的进程来检查库达最新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!