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.
VCS subsystem needs to somehow return if a file is modified or up to date. We can use FO.getAttribute and every VCS responsible for a file should return a Boolean instance - TRUE file is modified, FALSE file is up to date (or not yet committed/ignored etc.), null if unknown or the file is not under the VCS's control.
Implementing in git and mercurial, you can do the same in Subversion. You may prepare a patch and i will integrate it. One thing i was not sure about though: what is "modified" file? Should it also be a locally new/uncommitted file? At the moment true is returned only for: committed+modified or file in conflict. If you wanted a wider status set let me know.
fixed: core-main #607de149e5de
Integrated into 'main-silver', will be available in build *201411230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/607de149e5de User: Ondrej Vrabec <ovrabec@netbeans.org> Log: Issue #248811 - Need a way to determine if a FO is VCS modified Introducing an attribute ProvidedExtensions.IsVCSModified. FO.getAttribute returns TRUE if a VCS managing the file marks it as modified, FALSE if it marks it as up to date or uncommitted or null if not under VCS or the managing VCS does not know anything about it. Implemented in Git and Mercurial.
After a discussion with Benno, we agreed that TRUE should be returned also for NEW + ADDED files: updating in Git + Hg... fix: http://hg.netbeans.org/core-main/rev/1e0387eba602
fix: http://hg.netbeans.org/core-main/rev/7366c9a6c643
Integrated into 'main-silver', will be available in build *201411250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/1e0387eba602 User: Ondrej Vrabec <ovrabec@netbeans.org> Log: #248811 - Need a way to determine if a FO is VCS modified Return TRUE also for new and added files.