IDEA 2019.2 SVN cannot ignore folders or files not added to version control
Answered
IDEA SVN cannot ignore folders or files not added to version control, such as target directory and rebal.xml
Please sign in to leave a comment.
Hello,
IntelliJ IDEA 2019.2 adds native support for Git ignore to the platform, which means that the IntelliJ IDEA 2019.2 and all v2019.2 IntelliJ-based IDEs will have Git, Mercurial, Subversion, and Perforce native ignore file handling out of the box:
https://blog.jetbrains.com/idea/2019/07/support-for-vcs-ignores-in-intellij-idea-and-intellij-based-ides/
So, instead of adding ignored files to Settings | Version Control | Ignored Files, please use native functionality. Here is related YouTrack item:
https://youtrack.jetbrains.com/issue/IDEA-128585
It doesn't seem to be supported in SVN
Here is a related issue on YouTrack:
https://youtrack.jetbrains.com/issue/IDEA-219245
Feel free to watch it in order to be notified once it has updates. See this article if you are not familiar with YouTrack.
> It doesn't seem to be supported in SVN
It is, and it has been supported since 2011.
For Subversion, the action is just not added to the first menu level. It will be changed in the next update. See https://youtrack.jetbrains.com/issue/IDEA-218685
Also, you can manually edit svn:ignore properties using the corresponding action.
Most folders of the entire project become the following
Seems you set the svn:ignore property on the java folder. Changing of svn properties require committing them, so the folder becomes modified. Other folders are highlighted because you have Mark directories with changed descendants enabled, I believe.
Setting svn:ignore on the java folder will not help, however, as the property allows ignoring only children of the folder. To ignore the target folder, you should set the property on its parent, or use global-ignores. Also, you can call the Ignore action mentioned above on the target folder and it will automatically add respective svn:ignore property to the parent folder.
For more details see http://svnbook.red-bean.com/en/1.8/svn.advanced.props.special.ignore.html
How did you solve it?
I don't want to change the parent folder .I just ignore target folder!
But now ,the parent folder becomes modified,when I ignore target folder.
Please help me!
@...
Could you please elaborate on your question? What the behavior seems to be incorrect for you?
Steps to reproduce and screenshots of the issue would be highly appreciated.
when I just ignore target folder,the parent folder becomes modified (in Default Changes List). I don't want to change the parent folder .
Unfortunately, that's how Subversion properties work - they are set on the parent object and require committing.
Alternatively, you can define global ignore patterns in the subversion config, this will allow to ignore target in all svn-managed project without a need to set properties.
See http://svnbook.red-bean.com/en/1.8/svn.advanced.props.special.ignore.html or https://stackoverflow.com/questions/86049/how-do-i-ignore-files-in-subversion for details.
Would be great if the svn:global-ignores property was also supported, which is the usual way to ignore files in subfolders. It is also part of your posted StackOverflow answer (title "3").
For now I can set it on my PC in the subversion config file, but everyone else on the project also has to do this, which is annoying, as the global-ignores solution worked all the time with tortoise, but is missing in Rider.