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 72252 - CVS Update with option Get Clean Repository Copy does not get clean copy but reports Up-to-date
Summary: CVS Update with option Get Clean Repository Copy does not get clean copy but ...
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcsgeneric (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-04 11:05 UTC by senag
Modified: 2006-10-23 16:40 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 senag 2006-02-04 11:05:31 UTC
It is not possible to get a clean copy with the CVS updte command. Even though
the IDE is reporting a successful update. This issue messes up the source as
soon as you run the standard update/commit after getting a "clean" copy for a
locally modified file. Since the locally modified version, which was not
properly cleand, will be checked in. It is an issue for the new built in CVS
client and the generic VCS module. 

How to reproduce the issue (generic VCS with built-in CVS):

Check out a file, modify and save it. Then try the CVS Update with the advanced
option "Get Clean Repository Copy". The IDE will report Up-to-date, but the file
is still the locally modified version. Run CVS Update without the option and the
IDE will mark the file as Locally Modified. A followup commit would commit the
locally modified, not properly cleaned version of the file.


A workaround for a single file is:

Delete the file locally and run CVS update. For a whole project this is not
realy practicable.
Comment 1 Peter Pis 2006-02-04 11:52:49 UTC
In case of new CVS support you can use "CVS | Revert Modifications" action on
locally modified file(s)/folder. This command will overwrite selected files with
their latest repository version.
Comment 2 _ pkuzel 2006-02-08 09:53:56 UTC
Senag,

are you able to reproduce using Revert Modifications?
Comment 3 senag 2006-02-11 00:26:21 UTC
No. Revert Modifications of the module CVS Versioning System (1.7.1.1.42.1)
works as expected.

It is just an issue with the "old" Version Control modules:
- VCS Profile for Generic VCS (1.8.3.42)
- VCS Generic Command-Line Support (1.16.2.42.42).
Comment 4 _ pkuzel 2006-03-08 18:25:10 UTC
Probably bug in generic/cvs profile for build-in. It 
 - either  does not pass -c flag
 - or uses outdated cvsclient library.
Comment 5 Martin Entlicher 2006-04-21 11:31:52 UTC
We use javacvs library, that is distributed with the IDE. Therefore if this was
fixed in the javacvs libray, it should work now.
Marking as fixed, please verify in dev builds. Peter, do you have the issue for
the library bug?