I want to get all unversioned files from a folder using the SharpSvn, that have the following svn:ingore value:
*.o *.lo .la ## .*.rej .rej .~ ~ .# .DS_Store thumbs.db Thumbs.db *.bak *.class *.exe *.mine *.obj *.ncb *.lib *.log *.idb *.pdb *.ilk .msi .res *.pch *.suo *.exp .~ .~ ~. cvs CVS .CVS .cvs release Release debug Debug ignore Ignore bin Bin obj Obj *.csproj.user *.user *.generated.cs
I want to see all unversioned items to add to subversion. But, of course, I don't want to see the items from ignored list.
I tried to use the solution from the post: Find files not added to subversion but it dowesn't work for me.
The code that get the status for items is following:
private IEnumerable<SvnStatusEventArgs> GetStatuses(SvnClient client, string work) {
Collection<SvnStatusEventArgs> statuses;
client.GetStatus(work, out statuses);
return statuses;
}
So, it returns the items from "ignore list" :(
Thanks in advance!