Fisu
Fisu

Reputation: 3324

SVN ignore - "not under version control"

I have a directory structure that looks like:

components
  |_ticker
    |_sass-utils
      |_ ..
    |_ticker.css
    |_ticker.sass
    |_ ..

There are several files I don't want under SVN version control. components is already committed but ticker is not yet committed and svn status currently states:

?       components/ticker

If I cd into the ticker directory then try: svn propedit svn:ignore . (which is what I tried from this SO solution) I get the error:

svn: E200005: 'components/ticker' is not under version control

I believe that once I svn add components/ticker, files under ticker can no longer be ignored.

So how do I ignore files that are not under version control yet?

Upvotes: 1

Views: 13216

Answers (1)

Schwern
Schwern

Reputation: 164679

This answer lays it all out.

The problem you're having is you're going into the directory to be ignored (components/ticker) and trying to set properties. You're treating svn:ignore as if it acts on the current directory. svn:ignore is list of sub-directories to be ignored. You need to set the ignore property in the parent directory (components) and give it the sub-directory to ignore (ticker).

cd components
svn propset svn:ignore ticker .

Upvotes: 3

Related Questions