tags:

views:

152

answers:

1

Hello,

My question is quite simple and with the SharpSvn Api, it should be easy as well. Here what I did:

path = "c:\project";
using (SvnLookClient client = new SvnLookClient())
{
    SvnLookOrigin o = new SvnLookOrigin(path);
    Collection<SvnChangedEventArgs> changeList;
    client.GetChanged(o, out changeList); // <-- Exception
}

and when I call the GetChanged, I get an exception:

Can't open file 'c:\project\format': The system cannot find the file specified.

So, Maybe there is something I'm missing? Or maybe it's not the right way to do find out the list of files and folders that were modified in the local repository?

Thanks in advance.

+1  A: 

The SvnLookClient class in SharpSvn is the equivalent to the 'svnlook' console application. It is a low level tool that enables repository hooks to look into specific transactions of a repository using direct file access.

You probably want to use the SvnClient class to look at a WorkingCopy and most likely its Status() or in some cases simpler GetStatus() function to see what changed.

Bert Huijben