sharpsvn

How to get latest revision number from SharpSVN?

ⅰ亾dé卋堺 提交于 2019-11-27 02:30:49
问题 How to get latest revision number using SharpSVN? 回答1: The least expensive way to retrieve the head revision from a repository is the Info command. using(SvnClient client = new SvnClient()) { SvnInfoEventArgs info; Uri repos = new Uri("http://my.server/svn/repos"); client.GetInfo(repos, out info); Console.WriteLine(string.Format("The last revision of {0} is {1}", repos, info.Revision)); } 回答2: I am checking the latest version of the working copy using SvnWorkingCopyClient: var

SVN Repository Authentication using SharpSVN

被刻印的时光 ゝ 提交于 2019-11-27 02:04:37
问题 Can any one tell me how to authenticate users(SVN users) for a repository using SharpSVN Library. That repository should only be committed by those users. Thanks 回答1: Use the Authenticate properties of SVNClient : client.Authentication.Clear(); // Clear a previous authentication client.Authentication.DefaultCredentials = new System.Net.NetworkCredential("user", "password"); 回答2: client.Authentication.ForceCredentials("user", "password"); For those of you who don't want to blow away your

Does anyone know of a good C# API for Subversion? [closed]

霸气de小男生 提交于 2019-11-27 01:16:56
I'm looking to make calls out to a subversion repository, but I would like to write it in C#. Does anyone know of any good libraries? Have a look at SharpSVN . This is an open-source binding of the Subversion Client API for .Net 2.0 applications. For example, this library is used by the AnkhSVN Visual Studio Add-In. GEOCHET I recommend you look at the Tortoise SVN source code . It is mostly in C++, but since it is all done in VS, it should be easy to wrap up and use much of the code again. You can also try SubversionSharp if you want less heavy lifting (however it is not yet a stable release,

Does anyone know of a good C# API for Subversion? [closed]

牧云@^-^@ 提交于 2019-11-26 09:38:59
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I\'m looking to make calls out to a subversion repository, but I would like to write it in C#. Does anyone know of any good libraries?