The SvnLook client is specifically designed for use in repository entries. It allows you to access unjustified versions and, therefore, needs other arguments. (This is the SharpSvn equivalent of the svnlook command. If you need the equivalent of 'svn', you should look at SvnClient).
: * *
. , URL-, .
( pre-commit.tmpl):
SharpSvn , :
SvnHookArguments ha;
if (!SvnHookArguments.ParseHookArguments(args, SvnHookType.PostCommit, false, out ha))
{
Console.Error.WriteLine("Invalid arguments");
Environment.Exit(1);
}
. ( , . Subversion). , , .LookOrigin ha.
(1234-4567), SvnLookClient.
using(SvnClient cl = new SvnClient())
{
SvnLogArgs la = new SvnLogArgs();
Collection<SvnLogEventArgs> col;
la.Start = 1234;
la.End = 4567;
cl.GetLog(new Uri("http://svn.collab.net/repos/svn"), la, out col))
}