In client clicks, you most likely want to use SvnLookClient, which directly accesses the repository. In this example (copied from another question here) I also use the SvnHookArguments class to parse the hook arguments.
static void Main(string[] args)
{
SvnHookArguments ha;
if (!SvnHookArguments.ParseHookArguments(args, SvnHookType.PostCommit, false, out ha))
{
Console.Error.WriteLine("Invalid arguments");
Environment.Exit(1);
}
using (SvnLookClient cl = new SvnLookClient())
{
SvnChangeInfoEventArgs ci;
cl.GetChangeInfo(ha.LookOrigin, out ci);
Console.WriteLine(ci.LogMessage);
foreach(SvnChangeItem i in ci.ChangedPaths)
{
}
}
}
source
share