umpirsky
umpirsky

Reputation: 10024

SVN ignore problem

How is this possible?

> svn status
?       cp/app/cache
?       cp/app/logs

> svn propget svn:ignore
cp/app/cache
cp/app/logs
order/app/cache
order/app/logs

It should ignore this 2 directories, but it shows them as unversioned.

Upvotes: 2

Views: 407

Answers (1)

David W.
David W.

Reputation: 107040

You can't set svn:ignore to file names located in subdirectories. What svn:ignore is saying is to ignore a file named "cp/app/cachethat sits in the current directory. Not a file namedcachethat sits in a directoryappwhich sites in a directorycp`. It literally means a file with two forward slashes in its name. Yes, this is illegal under Windows and Unix, but some operating systems do allow files with forward slashes in their names.

If you really want to ignore those files, you need to set svn:ignore to cache and log on the directories cp/app and order/app

Upvotes: 3

Related Questions