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 215568 - Cannot put unmanaged project in VCS.
Summary: Cannot put unmanaged project in VCS.
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
: 201042 (view as bug list)
Depends on: 217779 222512 222536 222834 222847 229506
Blocks: 221230 221231 221235 221238
  Show dependency tree
 
Reported: 2012-07-16 07:02 UTC by Alexander Simon
Modified: 2013-10-01 10:15 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 Alexander Simon 2012-07-16 07:02:42 UTC
Scope of this issue is unamaged project, i.e. project created by project with existing sources or project or project from binary file wizards.

Steps to reproduce:
- create project.
- put project in VCS, i.e. put all files in the folder "nbproject", ignore folder "nbproject/private", folder nbproject has relative path to sources and is located in the same VCS as sources.
- work with project (change some source files, build, debug, run, exit from IDE, start IDE).
- pull project from VCS on another computer and work with it (change some source files, build, debug, run, exit from IDE, start IDE).

Actual behavior:
- VCS shows changes in the file nbproject/configurations.xml.

Expected behavior:
- there is no changes in VCS until user consciously changes nbproject/configurations.xml.
Comment 1 Quality Engineering 2012-07-17 03:04:53 UTC
Integrated into 'main-golden', will be available in build *201207170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/6f2f7b49c2af
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing Bug #215568 Cannot put unmanaged project in VCS.
- separate configurations.xml on parts:
1. move project tree + code assistance properties in private area (nbproject/private/configurations.xml)
2. wizard creates initial unmodifiable project tree + code assistance properties in public area (nbproject/default_configurations.xml)
Comment 2 Alexander Simon 2012-07-20 06:49:45 UTC
Fixed:
1. The following section was moved from nbproject/configurations.xml to nbproject/private/configurations.xml:
- section with project structure
- section with code assistance configuration
2. Wizards of project with existing code and project from binary file create "default configuration". It is a file nbproject/default_configurations.xml. This file is created only once and is not modified by IDE.
3. Folder nbproject/private should be ignored by VCS
4. IDE project pulled from VCS does not have nbproject/private folder. IDE first time opening the project reads nbproject/default_configurations.xml and creates own clone of default configuration in the nbproject/private folder. IDE warns user about using default code assistance configuration. IDE suggest to resolve possible inaccuracy of code assistance by rebuilding project.
5. There is no way to automatically update default configuration.

Note: this is actual only for "unmanaged project" (i.e. project with existing code or project from binary file). VCS issues of managed projects are out of the issue scope.
Comment 3 Quality Engineering 2012-07-20 13:58:28 UTC
Integrated into 'main-golden', will be available in build *201207201342* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/0988858a1019
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing Bug #215568 Cannot put unmanaged project in VCS
- show resolve references problem dialog if default configurations is loaded
Comment 4 Alexander Simon 2012-10-16 13:48:03 UTC
roll back changes:
http://hg.netbeans.org/cnd-main/rev/c24f200e0412
Comment 5 Alexander Simon 2012-10-16 13:53:05 UTC
increment version:
http://hg.netbeans.org/cnd-main/rev/ed0734db695e
Comment 6 Vladimir Voskresensky 2012-10-16 14:52:57 UTC
thanks, Alexander
Comment 7 Quality Engineering 2012-10-17 02:03:58 UTC
Integrated into 'main-golden', will be available in build *201210170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c24f200e0412
User: Alexander Simon <alexvsimon@netbeans.org>
Log: roll back fix of Bug #215568 Cannot put unmanaged project in VCS.
Comment 8 Vladimir Voskresensky 2012-10-25 17:39:23 UTC
revert store logic: store only items with non-excluded configurations (under flag). It can be deserialized with old schema:
http://hg.netbeans.org/cnd-main/rev/4437ed163245
http://hg.netbeans.org/cnd-main/rev/a07bddb40f1f
Comment 9 Quality Engineering 2012-10-26 01:28:30 UTC
Integrated into 'main-golden', will be available in build *201210260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/4437ed163245
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #215568 - Cannot put unmanaged project in VCS
- revert store logic: store only items with non-excluded configurations (under flag). It can be deserialized with old schema number without problems
Comment 10 Quality Engineering 2012-10-27 01:35:03 UTC
Integrated into 'main-golden', will be available in build *201210270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ca0f670e89ad
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #215568 - Cannot put unmanaged project in VCS
- logical folder and source roots are always writable; items from logical folder are writable as well (we fix the issue with unmanaged projects based on physical structure)
Comment 11 Quality Engineering 2012-10-30 02:32:45 UTC
Integrated into 'main-golden', will be available in build *201210300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ece2e895de23
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #215568 - Cannot put unmanaged project in VCS
- for the first version: allow discovery manipulate with headers as before
Comment 12 Quality Engineering 2012-10-31 02:55:42 UTC
Integrated into 'main-golden', will be available in build *201210310001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2180283bb82f
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing Bug #215568 Cannot put unmanaged project in VCS
- introduce env variable and transient macros
Comment 13 Quality Engineering 2012-11-01 02:40:17 UTC
Integrated into 'main-golden', will be available in build *201211010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/3679ef96eb88
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #215568 - Cannot put unmanaged project in VCS
        // in new scheme we restored "non-excluded" items => all new are treated as excluded by default
        // in old scheme we didn't store "non-excluded" items, we stored "excluded" instead
        // so to support projects with old scheme we need to consider all new files as "non-excluded"
Comment 14 Vladimir Voskresensky 2012-11-01 10:36:36 UTC
new scheme is implemented:
- keep only attributed items
- support env variables to be used as replacements of abs path in "include path" settings
- support transient macros to escape system/user dependent macro values
Comment 15 Vladimir Voskresensky 2012-11-01 11:04:30 UTC
Please, file all other issues as bugs.
Comment 16 Quality Engineering 2012-11-02 03:29:06 UTC
Integrated into 'main-golden', will be available in build *201211020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7958586c26ba
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #221231 - all files are switched off from code assistance if "Clean and Build after Finish" checkbox is switched off
(after #215568 - Cannot put unmanaged project in VCS)
- when init logical folder all files are included into project, later on discovery will update real states
Comment 17 Quality Engineering 2012-11-02 17:23:49 UTC
Integrated into 'releases', will be available in build *201211021451* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/e910c00f2d70
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #221235 - removed/added folder appears twice in project view
(after #215568 - Cannot put unmanaged project in VCS)
- before adding new folder search if it is already present
(transplanted from 523d0868b28b8339b6e807e885fe67ca5fde4ce2)
Comment 18 Quality Engineering 2012-11-30 02:38:43 UTC
Integrated into 'main-golden', will be available in build *201211300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d9df58cd6096
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: clean up for #215568 - Cannot put unmanaged project in VCS.
- now new scheme is always used in product
Comment 19 Alexander Simon 2012-12-18 12:15:45 UTC
*** Bug 201042 has been marked as a duplicate of this bug. ***
Comment 20 Alexander Simon 2013-10-01 08:32:20 UTC
Vladimir,

The fix broke move (D&D) functionality.
Please fix.
Comment 21 Alexander Simon 2013-10-01 09:55:59 UTC
(In reply to Alexander Simon from comment #20)
> Vladimir,
> 
> The fix broke move (D&D) functionality.
> Please fix.
fixed as a part of fix the bug #235459
Comment 22 Vladimir Voskresensky 2013-10-01 10:15:48 UTC
(In reply to Alexander Simon from comment #21)
> (In reply to Alexander Simon from comment #20)
> > Vladimir,
> > 
> > The fix broke move (D&D) functionality.
> > Please fix.
> fixed as a part of fix the bug #235459
Thanks!