I'm using the SharpSvn library. I want to check if the files that I have locally are the same with those on the subversion server. Does anyone know how I do this? Currently this is what I'm trying to do but it is saying "Unable to connect to a repository at URL"
public bool IsDirectoryTheSame(string folderpath)
{
var IsSameDirectory = false;
var installfolderlocal = GetInstallationFolder(folderpath);
using (SvnClient svnClient = new SvnClient())
{
SvnUriTarget target1 =
new SvnUriTarget(
new Uri(string.Format("{0}{1}", svnclientpath, folderpath)));
SvnUriTarget target2 =
new SvnUriTarget(
new Uri(installfolderlocal));
using(var stream = new MemoryStream())
{
IsSameDirectory = svnClient.Diff(target1,target2,stream);
}
}
return IsSameDirectory;
}