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 9367 - "Checkout" always replaces file although it is in [LMod] state.
Summary: "Checkout" always replaces file although it is in [LMod] state.
Status: CLOSED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: CVS (show other bugs)
Version: 3.x
Hardware: All Windows ME/2000
: P2 critical (vote)
Assignee: _ rgreig
URL:
Keywords:
Depends on:
Blocks: 9368
  Show dependency tree
 
Reported: 2001-02-02 16:19 UTC by Jiri Kovalsky
Modified: 2007-01-04 17:14 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 2001-02-02 16:19:13 UTC
Development build of NetBeans #117 (2001-02-02) on Windows 2000 with JDK 1.3.

Description:
============
Let's have [LMod] file with a lot of changes from previous revision. If user
invokes "Checkout" command in such a case on this file he will probably swear
and curse NetBeans until the end of the day when he finds out that he lost all
changes made. His file will be replaced without any warning with last available
revision. This is data lost and therefore should be fixed ASAP.

Steps to reproduce:
===================
1. Mount JavaCVS filesystem and select arbitrary [Up-to-date].
2. "Open" it, make some changes and "Save" the file so that it is [LMod] state.
3. Now perform "Checkout" command on such a file without any settings.
4. Verify that your changes made in step 2 are lost.
Comment 1 _ rgreig 2001-02-20 00:52:19 UTC
As part of fixing this bug, the expand-modules request and response must be 
implemented.
Comment 2 _ rgreig 2001-02-20 00:54:14 UTC
Assigning to Robert
Comment 3 _ rgreig 2001-02-20 01:00:17 UTC
Assigning to Robert.
Comment 4 _ rgreig 2001-02-25 22:32:55 UTC
Reassigning because of email address change.
Comment 5 _ rgreig 2001-02-25 22:36:29 UTC
Added new event for module expansion and made CheckoutCommand a subclass of 
BasicCommand to make use of modified file facilities.

Files modified:
org.netbeans.lib.cvsclient.Client
org.netbeans.lib.cvsclient.ClientServices
org.netbeans.lib.cvsclient.command.BasicCommand
org.netbeans.lib.cvsclient.command.Command
org.netbeans.lib.cvsclient.event.CVSAdapter
org.netbeans.lib.cvsclient.event.CVSListener
org.netbeans.lib.cvsclient.request.ValidResponsesRequest
org.netbeans.lib.cvsclient.response.ModuleExpansionResponse
org.netbeans.lib.cvsclient.response.ResponseFactory
org.netbeans.lib.cvsclient.response.UpdatedResponse
Comment 6 Jiri Kovalsky 2001-05-30 10:50:18 UTC
Verified in development build #199 of NetBeans.
Comment 7 Quality Engineering 2003-07-01 12:48:00 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.