简体   繁体   中英

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

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".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM