You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Dave Hotchkiss <da...@supercomputerinc.com> on 2005/03/04 19:16:24 UTC
svn add command not keying off svn:ignore value
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
Re: svn add command not keying off svn:ignore value
Posted by Ben Collins-Sussman <su...@collab.net>.
On Mar 4, 2005, at 1:16 PM, Dave Hotchkiss wrote:
> | $ svn add --force .
> | A samplefile.c
> | A samplefile.suo
> | A test-subfolder\samplefile2.c
> | A test-subfolder\samplefile2.suo
> |
>
Hmmm, the --force option was added to 'svn add' in svn 1.1, in order to
make it recurse into versioned directories. But it looks like you've
discovered a genuine bug in this behavior. Can you file your recipe as
a new issue?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org