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 164277 - Subversion does not commit recursively
Summary: Subversion does not commit recursively
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P3 blocker with 1 vote (vote)
Assignee: issues@versioncontrol
URL: http://forums.netbeans.org/viewtopic....
Keywords:
: 171203 173859 174588 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-01 16:58 UTC by rcourtna
Modified: 2010-02-26 02:23 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 rcourtna 2009-05-01 16:58:52 UTC
After adding a multiple-levels of directory to a NetBeans project from outside of NB (ie: from the command line), a
subversion commit will not recursively add all the files.

To duplicate:

- Checkout a svn module as a netbeans project.

- From the command line, add a multi-level dir structure.  Here's a CVS checkout to pull a drupal module:
cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -r DRUPAL-6--1-0-BETA2 -d
taxonomy_manager contributions/modules/taxonomy_manager

- In NB Files view, right click the top directory of your project and choose Subversion->Commit.
Only the first level of files in the "taxonomy_manager" will be shown in the commit dialog.

Workaround is to first select Subversion->Show Changes before Subversion->Commit.
Comment 1 Ondrej Vrabec 2009-05-04 16:28:07 UTC
Shall I understand this that:
1) you have a subversion project (in IDE)
2) than you checkout a CVS project into its subfolder (along with the CVS metadata)
3) than you try to commit these added files into subversion?
Comment 2 rcourtna 2009-05-04 16:30:52 UTC
@ovrabec

> Shall I understand this that:
> 1) you have a subversion project (in IDE)

Yes.

> 2) than you checkout a CVS project into its subfolder (along with the CVS metadata)

Yes.

> 3) than you try to commit these added files into subversion?

Yes.


Comment 3 Ondrej Vrabec 2009-05-04 17:06:28 UTC
I am afraid we cannot guarantee this would EVER work as you would expect. With the VCS architecture we use, I am affraid
those 'new' files will always be recognized as belonging to CVS and I don't think this would be 'fixed' (we don't
support mixing version controls).

You may try few workarounds:
1) either remove all CVS folders and restart IDE (this should be easy on unix-like OS)
2) try to deactivate the CVS module in Tools->Plugins->Installed - select CVS and click Deactivate
3) you can try to run IDE with a command-line switch '-J-Dnetbeans.subversion.commit.deepStatusRefresh=true' - this
should simulate 'Show Changes' before commit

Let us know if any of mentioned WAs work.
Comment 4 rcourtna 2009-05-04 17:40:05 UTC
Hi,

The problem is unrelated to CVS. To verify, I changed my cvs command from "checkout" to "export". No CVS folders now
exist in the test.

The "-J-Dnetbeans.subversion.commit.deepStatusRefresh=true" option does work, although it obviously causes a delay when
trying to commit.

Comment 5 Ondrej Vrabec 2009-08-31 19:51:52 UTC
*** Issue 171203 has been marked as a duplicate of this issue. ***
Comment 6 Ondrej Vrabec 2009-10-06 13:12:40 UTC
*** Issue 173859 has been marked as a duplicate of this issue. ***
Comment 7 Ondrej Vrabec 2009-10-07 08:33:29 UTC
Preparations for commit were significantly optimized in 6.8, i hope, so
'-J-Dnetbeans.subversion.commit.deepStatusRefresh=true' should not take as much time as before. It will be set to
default in a next release.
Comment 8 Ondrej Vrabec 2009-10-15 08:43:09 UTC
*** Issue 174588 has been marked as a duplicate of this issue. ***
Comment 9 Ondrej Vrabec 2010-02-26 02:23:02 UTC
Committing from the projects view now triggers the status refresh, this should be fixed (http://hg.netbeans.org/main/rev/73abaaf01ff5).