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.
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.
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)
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.