Search code examples
svnsvnignore

SVN still asking to commit ignored files


I ran svn propedit svn:ignore directory_x .

When I run svn pg -R svn:ignore . I see the directory_x inside the ignored list

However, after I do svn status, I can still see the directory and it always asks me to commit the same directory.

I tried to run svn cleanup but nothing changed


Solution

  • You can't. svn:ignore only affects files that are not in the repository. See Subversion book:

    Once an object is under Subversion's control, the ignore pattern mechanisms no longer apply to it. In other words, don't expect Subversion to avoid committing changes you've made to a versioned file simply because that file's name matches an ignore pattern—Subversion always notices all of its versioned objects.

    And

    svn:ignore

    If present on a directory, the value is a list of unversioned file patterns to be ignored by svn status and other subcommands. See the section called "Ignoring Unversioned Items".