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 57771 - PVCS: Can't put project into archive.
Summary: PVCS: Can't put project into archive.
Status: CLOSED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcscore (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2005-04-12 14:19 UTC by Jiri Kovalsky
Modified: 2006-03-24 13:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of commands in Runtime tab. (38.67 KB, image/jpeg)
2005-04-12 14:21 UTC, Jiri Kovalsky
Details
Screenshot of the structure in Versioning tab. (38.42 KB, image/jpeg)
2005-04-12 14:23 UTC, Jiri Kovalsky
Details
The textual patch that fix this issue. (1.66 KB, patch)
2005-04-13 11:00 UTC, Martin Entlicher
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2005-04-12 14:19:57 UTC
Development build #200504111930 of NetBeans 4.1
Windows XP, JDK 1.5.0_03 build #06

Description:
============
Functionality of "PVCS|Add All" command is seriously broken. It is now
impossible to add complex directory structure e.g. project into PVCS archive
because the recursive Add command is not even executed. This is a severe
regression and it must be definetely fixed into 4.1 FCS.

Steps to reproduce:
===================
1. Register already existing PVCS working directory in "Versioning Manager".
2. Create new sample Java application project in that working directory.
3. Switch to "Files" view and invoke "PVCS|Add All" on the project root node.
4. Confirm accepting simple mode by clicking "Add All".
5. Type "abcd" into "Workfile Description:" and "Change Description" fields.
6. Check "Add all subdirectories" option and push "OK" button.
7. Nothing is added. Switch to "Versioning" view to see that there was new
<project>_FilesNotAdded##### directory created. All nodes remain [Local].

Workaround:
===========
To workaround it, one has to do things manually i.e. use "PVCS|Create Project"
action for all packages and "PVCS|Add" for all files inside the project.
Comment 1 Jiri Kovalsky 2005-04-12 14:21:28 UTC
Created attachment 21570 [details]
Screenshot of commands in Runtime tab.
Comment 2 Jiri Kovalsky 2005-04-12 14:23:03 UTC
Created attachment 21571 [details]
Screenshot of the structure in Versioning tab.
Comment 3 Peter Pis 2005-04-12 14:38:36 UTC
This error is ugly, but in q-build (Build 200504060831) it works fine.
Comment 4 Martin Entlicher 2005-04-13 10:52:03 UTC
This bug seems to be caused by improper fix of issue #56047. The synchronization
is not made correctly, there can occur a race-condition.
Comment 5 Jiri Kovalsky 2005-04-13 10:56:50 UTC
Do you say we will release 4.1 with this defect ?
Comment 6 Martin Entlicher 2005-04-13 10:56:51 UTC
Moving into vcscore module, the problem is caused by the fact that ADD_DIR is
not executed at all due to that race-condition (it's waiting for it's
pre-commands although they have already finished).
Comment 7 Martin Entlicher 2005-04-13 10:59:11 UTC
Fixed in trunk:

/cvs/vcscore/src/org/netbeans/modules/vcscore/cmdline/UserCommandTask.java,v 
<--  UserCommandTask.java
new revision: 1.43; previous revision: 1.42
Comment 8 Martin Entlicher 2005-04-13 11:00:07 UTC
Created attachment 21598 [details]
The textual patch that fix this issue.
Comment 9 _ pkuzel 2005-04-14 15:24:36 UTC
Bunch of tasks is added in atomic action (in respect to ther threads. It can not
hurt anything. REVIEWED
Comment 10 Martin Entlicher 2005-04-14 15:59:01 UTC
Thanks for the review, the fix is merged into release41 branch:

/cvs/vcscore/src/org/netbeans/modules/vcscore/cmdline/UserCommandTask.java,v 
<--  UserCommandTask.java
new revision: 1.42.4.1; previous revision: 1.42
Comment 11 Jiri Kovalsky 2005-04-14 18:04:14 UTC
Verified in continuous development build #20050414-1537 of NetBeans 4.1.
Comment 12 Peter Pis 2005-04-14 19:19:06 UTC
Thanks for quick verifying.