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.
1. Create a project 2. Go to command line and do hg init in the project root directory 3. Go back to IDE - the IDE does not recognize that this is a hg project, does not offer any hg actions such as commit, and still offers "initialize repository" action. The only workaround I found is to restart the IDE: - closing and reopening the project does not help - Source -> Scan for external changes does not help
That's why we have Mercurial > Initialize action which does the same as hg init, why don't you use that action exactly? The information about a folder being versioned/unversioned is cached inside the versioning core support and is refreshed only by certain versioning actions (one of them is the Mercurial -> Initialize). Constant rescanning would heavily slow down the IDE.
> why don't you use that action exactly? In the IDE in general we try to follow the principle that any external changes must be picked up. This is true for the editor indexing support, for the file/project explorer etc. I understand the requirement not to slow down the IDE, so it's ok if the refresh is not immediate/automatic. But at the very least, the "Scan for external changes" action should recognize such a change.
*** This bug has been marked as a duplicate of bug 200267 ***