On May 31, 2005, at 10:41 AM, Eli Barzilay wrote:
> On May 31, Marc Sherman wrote:
>> "svn add dir" will ignore any files in dir matching svn:ignore.
>> Same for import. Files you explicitly list will not be ignored.
>
> I don't see it happening, and I can't think of a situation it will.
> Say that you want to add "foo" and ignore txt files, this:
>
>> svn propedit svn:ignore foo
>>
> svn: 'foo' is not under version control
>
> is obvious -- it's not added yet. And this:
>
>> svn propget svn:ignore .
> *.txt
>
>> ls foo
> checklist.txt
>
>> svn add foo
> A foo
> A foo/checklist.txt
>
> is because the property applies only to a directory.
You appear to be correct. I tried something similar adding 'foo' non-
recursively first, then setting the ignore property.. but there seems
to be no way to add the files within foo after that in a way that the
ignore property is used.
Some clarification is needed. I do think that tools like TortoiseSVN
will filter the list of 'unversioned resources' when you select the
'Add' action in a folder. But the command line tools don't seem to
have a way to use svn:ignore for the 'add' command.
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 31 17:41:09 2005