This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
If we set versioning.unversionedFolders=NB_USERDIR property, the logic in VersioningManager correctly marks NB_USERDIR as non-versioned (with no VCS owner). But unfortunately it seems that all its parents are marked as unversioned as well. See the attached patch with junit tests demonstrating the fact and a fix proposal. The fix is trivial and does what we want, but probably worsens performance. I think the best way would be to share unversionedFolders logic among versioning module and all vc systems - in other words making it a part of the API. That way a file/folder could be tested for being an excluded one and the whole logic in VersioningManager could be skipped for unversioned/excluded files, leaving the rest of the code as it is now.
Created attachment 109295 [details] unit tests
Created attachment 109296 [details] fix proposal
fix: http://hg.netbeans.org/core-main/rev/95af576cfd18
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/95af576cfd18 User: Ondrej Vrabec <ovrabec@netbeans.org> Log: Issue #199951 - versioning.unversionedFolders switch excludes whole disk from versioning