Using SharpSvn, how can I get a list of files that need to be committed (the list that you would see if you right click on a folder with tortoisesvn and hit commit)
I tried this:
SharpSvn.SvnClient client = new SharpSvn.SvnClient();
Collection<SvnListChangeListEventArgs> list;
bool result = client.GetChangeList(@"C:\MyProjectPath", out list);
But it seems to be returning a list of every file in the project instead of just the modified ones.
The function you're using is for the changelist feature. To see what files are changed use the
GetStatus
orStatus
calls. In this case you want to check theLocalContentStatus
andLocalPropertyStatus
Sander is correct, here is a more complete example of listing modified files: