user420667
user420667

Reputation: 6700

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

Upvotes: 3

Views: 1658

Answers (3)

Marijn
Marijn

Reputation: 10557

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.

Upvotes: 3

Mark Brackett
Mark Brackett

Reputation: 85645

SharpSVN

Upvotes: 2

Kalman Speier
Kalman Speier

Reputation: 1937

You might check SharpSvn

Upvotes: 4

Related Questions