[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Issue #2243 still exists with svn 1.6.17

From: Alan McGovern <alan_at_xamarin.com>
Date: Sat, 30 Jun 2012 09:25:51 -0400

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:alan_at_xamarin.com]
> Sent: zaterdag 30 juni 2012 01:34
> To: users_at_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
Received on 2012-06-30 15:26:27 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.