开发者

using svn tortoise features through code

I am writing an application in c# that copies files, and I wanted to only copy files according to their tortoise-svn status.. i.e开发者_开发问答., I would like to divide the files into modified files vs unmodified.

Is there a way to do this? I've been looking at the different .exe files in the svn/bin folder, but haven't found anything. perhaps theres a dll I am overlooking?

Thanks


Talk to svn directly, use svn status.

http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.tour.cycle.examine.status


Thanks everyone for your help, it finally works... I got it to work using two methods:

either using a process in c# and calling the SubWCRev.exe (if you put in as a process argument the path of the file you want to check for svn modifications, you should get that detail as an output).

and the other way was adding the SubWCRevCOM.exe as a reference and then using it as so:

using LibSubWCRev;
SubWCRev subCheckMod = new SubWCRev();
subCheckMod.GetWCInfo(@file_to_check, true, true);
if (subCheckMod.HasModifications) {...}

thanks again everyone =]


Since your question is tagged as C#, I would suggest looking for .Net bindings to subversion.

SharpSvn looks like it would meet your needs.


TortoiseProc is used for automation, but you need to study its syntax.


If you wanted to use the exes that come with TortoiseSVN look at SubWCRev.exe.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜