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 180245 - missing files in Mercurial status for 4 projects
Summary: missing files in Mercurial status for 4 projects
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-03 19:49 UTC by err
Modified: 2010-02-04 22:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
status of 4 projects (40.18 KB, image/png)
2010-02-03 19:49 UTC, err
Details
single project with correct status (32.83 KB, image/png)
2010-02-03 19:50 UTC, err
Details

Note You need to log in before you can comment on or make changes to this bug.
Description err 2010-02-03 19:49:31 UTC
Created attachment 93826 [details]
status of 4 projects

There should be 8 files listed as shown by the command line output. But the status only shows 4 files. (Some of these files were missed on the commit. The directory structure is unorthodox due to historical issues.

The files for the nbvi-suite are missing. But if I get the status of that project alone, the files are listed.

See the attachments.

=== command line

/nbvi/ $ hg st
M nbvi-suite\build.xml
M nbvi-suite\jvi-project\nbproject\build-impl.xml
M nbvi-suite\jvi-project\nbproject\genfiles.properties
M nbvi-suite\jvi-wrapper\nbproject\build-impl.xml
M nbvi-suite\jvi-wrapper\nbproject\genfiles.properties
M nbvi-suite\nbproject\build-impl.xml
M nbvi-suite\nbproject\genfiles.properties
M nbvi-suite\nbproject\project.properties

=== Output Window "Mercurial - 4 Projects [nbvi] - current"

M nbvi-suite\jvi-project\nbproject\build-impl.xml
M nbvi-suite\jvi-project\nbproject\genfiles.properties
M nbvi-suite\jvi-wrapper\nbproject\build-impl.xml
M nbvi-suite\jvi-wrapper\nbproject\genfiles.properties

=== directory structure

/nbvi/ $ ls -a
.   .cvsignore  .hgignore   .hgtags  build      javahelp     nbproject   src
..  .hg         .hgignore~  README   build.xml  manifest.mf  nbvi-suite
/nbvi/ $ ls nbvi-suite/
build  build.xml  jvi-project  jvi-wrapper  nbproject
Comment 1 err 2010-02-03 19:50:33 UTC
Created attachment 93827 [details]
single project with correct status
Comment 2 err 2010-02-03 19:52:51 UTC
BTW, the 'jvi-project' is project with existing sources. Its sources are in a separate repository. So there are two repositories involved.
Comment 3 Ondrej Vrabec 2010-02-04 07:00:47 UTC
The problem is in the hardcore logic of VCS context creation in the Projects/Files view. When you selected the root project (jVi KeyBindings), it excludes its child projects (namely nbvi-suite). And if you selected also the child project it still remains excluded in the context yet it shouldn't.
I'll fix it.
Comment 4 Ondrej Vrabec 2010-02-04 07:21:08 UTC
fix: http://hg.netbeans.org/cdev/rev/a62910c5b60e
Comment 5 Ondrej Vrabec 2010-02-04 07:28:52 UTC
One more thing, you won't be troubled with this if you mount the project root into the Favorites view (it behaves differently from the Projects or Files view) and do mercurial opertaions from there.
Comment 6 Quality Engineering 2010-02-04 22:32:13 UTC
Integrated into 'main-golden', will be available in build *201002050200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a62910c5b60e
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: Issue #180245 - missing files in Mercurial status for 4 projects
rootfiles should never be excluded from the selection