'svn status' and/or the api equivalent svn_client_statusX() also process the ignore status to provide the status if you have an unversioned or ignored item.
The SharpSvn users list should have more details on these cases. (Googling for SharpSvn will also provide answers on StackOverflow). More than a few users asked similar and related questions there over the years. SharpSvn is a thin layer over the client api, so most questions equally apply to direct users of the libsvn_client api. Bert From: Alan McGovern [mailto:a...@xamarin.com] Sent: zaterdag 30 juni 2012 15:26 To: Bert Huijben Cc: users@subversion.apache.org Subject: Re: Issue #2243 still exists with svn 1.6.17 This leaves me with a bit of a conundrum. Our IDE would normally automatically call "svn add" when you add a new file to the solution. It is possible that this file could be in the svn ignore list. The result is that by attempting to make the developers life easy we will instead always add files which should be ignored. Is there any API for me to check if a file would normally be ignored so i can filter those paths out before calling svn_add to avoid this issue? My only other alternative would be to call something like svn add . --force and then see what files have been added and revert all of them except for the one I actually wanted. Or is there another way to achieve what I want? Alan On 30 Jun 2012, at 08:27, Bert Huijben wrote: The 'no_ignore' flag is only used for recursive targets. Explicitly passed targets (such as via 'svn add *') are always processed. If you would like to use the ignore feature you should call 'svn add --force .', or the api equivalent of that. This adds the directory and everything below that ignoring the case that with proper ignore handling. The --force allows calling it on an already versioned directory. Bert From: Alan McGovern [mailto:a...@xamarin.com] Sent: zaterdag 30 juni 2012 01:34 To: users@subversion.apache.org Subject: Issue #2243 still exists with svn 1.6.17 Hey, We use libsvn in our project and have hit an issue [0] which appears to be a recurrence of libsvn bug #2243 [1]. Essentially we invoke 'svn_client_add3' and pass false for no_ignore but files in the ignore list are still added to the repository. Invoking "svn add thatfile" from the commandline results in the file being added too. Alan [0] https://bugzilla.xamarin.com/show_bug.cgi?id=5069 [1] http://subversion.tigris.org/issues/show_bug.cgi?id=2243