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 62541 - update command overwrites localy modified files with repository copy
Summary: update command overwrites localy modified files with repository copy
Status: VERIFIED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: CVS library (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-18 09:21 UTC by Pavel Rehak
Modified: 2007-01-04 17:14 UTC (History)
1 user (show)

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 Pavel Rehak 2005-08-18 09:21:20 UTC
latest q-build 200508161800

Update command executed on project/folder with localy modified files
(note: on file itself it recognizes changes and doesn't overwrite it)
it fetches fresh repository copies and overwrites localy changed files,
which inflicts huge data loss for user.
Comment 1 Maros Sandor 2005-08-18 10:10:23 UTC
Library does not send Questionable request for new directories.
Comment 2 Maros Sandor 2005-08-18 12:26:09 UTC
This happens if there are modified files in a directory and that directory (or
one of its parent directories) is not listed in CVS/Entries. Command-line CVS
fails with "cvs.exe update: move away <some file>; it is in the way" conflict
message.
Comment 3 Maros Sandor 2005-08-18 15:19:18 UTC
Bug fixed by enhancing the CVS library. It now supports Created and
Update-existing server responses. Without them, we were unable to distinguish
between files that were sent as being New or Modified.
Verification steps: have some project checked out, modify some file (at least 2
directories under project root), remove file's parent directory from CVS/Entries
and try to Update the project. Error message should come up saying that a file
should be created but it already exists.

/shared/data/ccvs/repository/javacvs/cvsmodule/src/org/netbeans/modules/versioning/system/cvss/ExecutorSupport.java,v
 <--  ExecutorSupport.java
new revision: 1.13; previous revision: 1.12
/shared/data/ccvs/repository/javacvs/libsrc/org/netbeans/lib/cvsclient/request/ValidResponsesRequest.java,v
 <--  ValidResponsesRequest.java
new revision: 1.19; previous revision: 1.18
/shared/data/ccvs/repository/javacvs/libsrc/org/netbeans/lib/cvsclient/response/CreatedResponse.java,v
 <--  CreatedResponse.java
initial revision: 1.1
/shared/data/ccvs/repository/javacvs/libsrc/org/netbeans/lib/cvsclient/response/UpdatedResponse.java,v
 <--  UpdatedResponse.java
new revision: 1.33; previous revision: 1.32
/shared/data/ccvs/repository/javacvs/libsrc/org/netbeans/lib/cvsclient/response/ResponseFactory.java,v
 <--  ResponseFactory.java
new revision: 1.26; previous revision: 1.25
/shared/data/ccvs/repository/javacvs/libsrc/org/netbeans/lib/cvsclient/command/BasicCommand.java,v
 <--  BasicCommand.java
new revision: 1.59; previous revision: 1.58
Comment 4 Pavel Rehak 2005-08-19 10:25:50 UTC
Verified with NetBeans IDE Dev (Build 200508181800).