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

svn add command not keying off svn:ignore value

From: Dave Hotchkiss <dave_at_supercomputerinc.com>
Date: 2005-03-04 20:16:24 CET

In my development environment, I have lots of files that I want
Subversion to ignore when I add additional files. According to the
Subversion book, I *should* be able to do so via the svn:ignore
property. In the section on the svn:ignore property, it discusses it
in reference to the 'svn status' command and then states the following:

| The list of patterns to ignore is also used by svn add and
| svn import. Both of these operations involve asking Subversion to
| begin managing some set of files and directories. Rather than force
| the user to pick and choose which files in a tree she wishes to start
| versioning, Subversion uses the ignore patterns to determine which
| files should not be swept into the version control system as part of
| a larger recursive addition or import operation.

When I set the svn:ignore property recursively on my directories, it
does affect the output of the 'svn status' command as it should.
Unfortunately, though, it does NOT affect the 'svn add' command when I
try to make it work:

| $ ls -R
| .:
| samplefile.c samplefile.suo test-subfolder
|
| ./test-subfolder:
| samplefile2.c samplefile2.suo
|
| $ svn propget svn:ignore -R .
| . - *.suo
|
| test-subfolder - *.suo
|
|
| $ svn status
| ? samplefile.c
| ? test-subfolder\samplefile2.c
|
| $ svn status --no-ignore
| ? samplefile.c
| I samplefile.suo
| ? test-subfolder\samplefile2.c
| I test-subfolder\samplefile2.suo
|
| $ svn add --force .
| A samplefile.c
| A samplefile.suo
| A test-subfolder\samplefile2.c
| A test-subfolder\samplefile2.suo
|

Any ideas on this? I did find another post on this problem, but no one
has replied: http://svn.haxx.se/users/archive-2004-11/0105.shtml

Thanks very much!

-- 
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 7 02:59:41 2005

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