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 224455 - Opening multiple projects via subversion impossible
Summary: Opening multiple projects via subversion impossible
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-04 08:52 UTC by Peter Nabbefeld
Modified: 2013-09-02 09:36 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
open projects dialog (35.16 KB, image/png)
2013-01-04 11:06 UTC, Ondrej Vrabec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Nabbefeld 2013-01-04 08:52:28 UTC
I've got a repo with multiple (maven) projects, running into problems opening them: If I try to open the projects after checkout, one arbitrarily choosen tag directory is used for every project - not the most recent, neither trunk.

With multiple projects, it is not a good idea to skip the topmost folder (which identifies the project, of course), but 'trunk' should be choosen for skipping (and opening the project).

As a result, it's a pain to open a single project (You've to create the project folder manually, to make checkout possible), and it is impossible to open multiple projects.
Comment 1 Ondrej Vrabec 2013-01-04 08:58:01 UTC
I do not understand what you're trying to say. File -> Open Project does not open your project? I suggest you describe your repository and checkout folder structure, point to what's wrong and describe what you would expect. Thanks.
Comment 2 Peter Nabbefeld 2013-01-04 09:08:22 UTC
repo:

proj1
  |
  +- tags
  |    |
  |    +- 2.0
  |    |   |
  |    |   +- src
  |    |
  |    +- 2.1
  |    |   |
  |    |   +- src
  |    |
  |    +- 2.2
  |    |   |
  |    |   +- src
  |    |
  |    +- 3.0
  |        |
  |        +- src
  |
  +- trunk
       |
       +- src


proj2
  |
  +- tags
  |    |
  |    +- 1.0
  |    |   |
  |    |   +- src
  |    |
  |    +- 1.2
  |    |   |
  |    |   +- src
  |    |
  |    +- 2.5
  |    |   |
  |    |   +- src
  |    |
  |    +- 4.0
  |        |
  |        +- src
  |
  +- trunk
       |
       +- src

When I try to open proj1 and proj2, project is created e.g. from proj1/tags/2.1 and proj2/tags/1.0

In both cases, project should be created from projx/trunk (eliminating 'trunk')
Comment 3 Ondrej Vrabec 2013-01-04 09:14:19 UTC
> When I try to open proj1 and proj2, project is created e.g. from proj1/tags/2.1 and proj2/tags/1.0
Where exactly? In the File -> New Project wizard? Isn't there a possibility to change the location of sources and nbproject metadata?
Comment 4 Peter Nabbefeld 2013-01-04 09:30:20 UTC
I see, we're talking about different things. Of course, it is always possible to create a project from sources - with or without VCS usage.

But what's not possible is creating a project "on the fly" properly from a subversion checkout (though it's offered by the checkout dialog). BTW, there's a pom.xml, creating a maven project should thus work (and it does, but it's not properly working, as a subdirectory seems to be used arbitrarily for creating the project).
Comment 5 Ondrej Vrabec 2013-01-04 09:35:53 UTC
Is the repo public? Can i try myself?
Comment 6 Peter Nabbefeld 2013-01-04 09:56:45 UTC
No, sorry. It's an intranet source repository from my employer.
Comment 7 Ondrej Vrabec 2013-01-04 11:05:32 UTC
If i have the following repo setup:
224455
  |
  +- tags
  |    |
  |    +- 1.0
  |       |
  |       +- src
  |       |
  |       +- pom.xml
  +- trunk
       |
       +- src
       |
       +- pom.xml

and i check out 224455 with "Scan for projects" selected in the Checkout dialog, i get the following dialog asking me to select projects to open (i can both see tags/1.0 and trunk versions and can easily select which project to open). Do you get anything else? Or does pom.xml reside in different folders?
Comment 8 Ondrej Vrabec 2013-01-04 11:06:55 UTC
Created attachment 129886 [details]
open projects dialog
Comment 9 Ondrej Vrabec 2013-01-04 11:08:59 UTC
... and when i select the trunk version, it is indeed opened.
Comment 10 Peter Nabbefeld 2013-01-04 12:04:24 UTC
Hm, must admit it works now - must have done sth. wrong, probably I just hadn't noticed that the list of projects is initially unordered (and thus selected the last of a "package", i.e. the last one of a block with the same project name).

However, IMHO, it would be helpful to show only trunk versions by default, or to make this behaviour selectable in dialog "Folders to Checkout" (instead or beneath the option "Skip <selected folder> ...").

If I do select the trunk version directly in the aforementioned dialog, the project directory isn't created correctly (as the name of the project will be "trunk"), and if I select the project's subversion root, I'll probably get hundreds of folders (if the project exists for several years and is very actively developed).

Another (additional) option could be, to show only the latest (e.g. 10) tag/branch versions, to limit the list size.
Comment 11 Ondrej Vrabec 2013-01-04 14:18:52 UTC
well, the main problem with subversion is that we do not know for sure what version is trunk, branch or tag. For us they're simply folders. True, in some cases we could rely on a probable usual setup but that would not work always.
Also, displaying just a subset of found projects is not a good idea, would be confusing for someone. The only reasonable thing that i could do is to somehow sort projects in the list.