开发者

Automating Subversion with C# [duplicate]

This question already has answers here: Closed 9 years ago.

Possible Duplicate:

Does anyone know of a good C# API 开发者_如何学Gofor Subversion?

I'm designing a document library, and I'd like to use Subversion as the version control system. How can I automate tasks like check-in, check-out and diff from C#? Does Tortoise perhaps offer some help with this?

TIA.


How about sharpsvn


Give a look to this question:

  • SVN Libraries for .NET?


Subversion is completely command line driven. TortoiseSVN masks this for us windows users. Simply call the command line commands from within your C# program.


You can write server-side or client-side hooks with C#. on the server side you just need to write an app that takes the connect number of parameters give it the name of the hook and put it in the hooks folder. On the client side you will do the same but you need to hell Tortoise were to find the app.

(this is assuming you want to get information from SNV in to the content management. You might want to look at the command line tools or SharpSVN to go the other way around)

  • Server Side Hooks
  • Client Side Hooks


Can't you just use the commandline from your app?

See http://svnbook.red-bean.com/en/1.4/svn.ref.svn.html


Try this blog post about Creating your own custom Subversion management layer. In short, SharpSVN is your best bet but you'll still have some work to do.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜