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.
Summary: | No FS event after Subversion > Update | ||
---|---|---|---|
Product: | versioncontrol | Reporter: | Tomas Mysik <tmysik> |
Component: | Code | Assignee: | Tomas Stupka <tstupka> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | CC: | issues, jskrivanek, pjiricka |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 170862 | ||
Bug Blocks: | 172254 |
Description
Tomas Mysik
2009-09-14 14:39:52 UTC
we should ensure that after every vcs cmd changing files there will be a fs.refresh however, all fileobject relevant to a php project should be known by filesystem - 170862 would be a way The fix for post 6.8 should be: FileObject root = findRootOfVCSOperation(); FileChangeListener tmpListener = new MyListener(); root.addRecursiveListener(tmpListener); // do the external command FileUtil.refreshFor(FileUtil.toFile(root)); root.removeRecursiveListener(tmpListener); PHP attaches its own recursive listener, right? No need to add/remove it before/after every svn action. So you do
> FileUtil.refreshFor(FileUtil.toFile(root));
right?
> So you do > > FileUtil.refreshFor(FileUtil.toFile(root)); > right? As far as i know, we do. We either call it directly here: http://hg.netbeans.org/core-main/file/a19eada68d05/versioning.util/src/org/netbeans/modules/versioning/util/IndexingBridge.java#l160 or through Parsing API if available (the second if branch in IndexingBridge). And since the native listener was introduced, that shouldn't be even necessary, i think. OK, thanks, I will have a look at it. |