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.

Bug 43435 - CVS: Editor does not reflect physical content of file.
Summary: CVS: Editor does not reflect physical content of file.
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: rmatous
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2004-05-18 13:08 UTC by Jiri Kovalsky
Modified: 2008-12-22 19:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2004-05-18 13:08:32 UTC
Development build #200405171800 of NetBeans 4.0
Windows XP with JDK 1.4.2_02

Description:
============
Editor does not update its content when opened
file is changed physically on the disc. This
typically happens during operations like
"CVS|Update" and has further consequences like not
working "Resolve Conflicts" action.

Steps to reproduce:
===================
1. Register existing CVS directory in Versioning
Manager.
2. Open project stored in it and "Open" some
[up-to-date] file into editor.
3. Change it and commit new revision into CVS
repository.
4. Invoke "CVS|Show Versions" action on the file.
5. Right click some older revision and choose
"Update".
6. Note that editor still displays your changes
from step 3.
Comment 1 Martin Entlicher 2004-05-18 13:31:02 UTC
This definitely used to work. It must be some weird regression.
It must be investigated whether the problem is in VCS modules or
Editor framework.
Comment 2 Martin Entlicher 2004-05-18 17:10:40 UTC
I have no idea where the problem is.
AbstractFileSystem.refreshResource(...) is correctly called for the
affected files.

I suppose that this is either a problem of masterfs that it does not
propagate the refreshes correctly, or a regression in editor support.
Comment 3 Milan Kubec 2004-05-20 10:24:27 UTC
Please note that this issue is Q-Build stopper.
Comment 4 rmatous 2004-05-20 11:41:15 UTC
Fixed into trunk:

/cvs/openide/masterfs/src/org/netbeans/modules/masterfs/MasterFileObject.java
new revision: 1.17; previous revision: 1.16

Martin please verify and then I'll commit it into QBE20040518224. 
Comment 5 rmatous 2004-05-20 11:42:07 UTC
Maybe Jirka could verify it.
Comment 6 rmatous 2004-05-20 16:01:09 UTC
Also commited into branch.

/cvs/openide/masterfs/src/org/netbeans/modules/masterfs/MasterFileObject.java
new revision: 1.16.2.1; previous revision: 1.16
Comment 7 Jiri Kovalsky 2004-05-20 18:15:53 UTC
Verified in development build #20040520-1605 of NetBeans 4.0.
Comment 8 Martin Entlicher 2004-05-21 16:19:04 UTC
I also confirm that the behavior is correct now. Thanks.