Book a Demo

Author Topic: Import of root nodes from SVN  (Read 5465 times)

GBeutler

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Import of root nodes from SVN
« on: November 07, 2007, 04:58:19 am »
Hi All,

I try to import from SVN as root node. What I easily can get is :

RootNode_1
   |
   -RootNode_To_Import

what I would like to get is:

-RootNode_1
-RootNodeTo_Import

How can I import Nodes on root level? Creating and adding to version control was easy to manage.

Thanks in advance and best regards,

Guido

peter.zrnko

  • EA User
  • **
  • Posts: 253
  • Karma: +0/-0
    • View Profile
Re: Import of root nodes from SVN
« Reply #1 on: November 07, 2007, 02:51:38 pm »
Have you set Version control or you have just controlled packages?

If you have set Version Control, you can "import" package using "Check out" command (under Project browser context menu Package control).

If you have set only Control Package without Version control, then you will find in Project browser context menu
Package Control | Load Package from File
that will overwrite your package with the content of xmi file.


It seems to me that you used "Import package from xmi" and check "Strip GUID's". This option creates structure like:

RootNode_1
   |
   -RootNode_To_Import


When you uncheck "Strip GUID's" and run it for the package you had exported before, I think it will behave like "Load Package from File" from "Package Control" submenu.
Peter

GBeutler

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Import of root nodes from SVN
« Reply #2 on: November 08, 2007, 04:31:55 am »
Hi,

I used "Package Control->Get Package" under project browser.
The package then is always under the selected node. I was not able to get the command without selecting a node so I can not import at root level. I did not use the import from xmi.

best regards,

Guido

peter.zrnko

  • EA User
  • **
  • Posts: 253
  • Karma: +0/-0
    • View Profile
Re: Import of root nodes from SVN
« Reply #3 on: November 09, 2007, 01:01:49 am »
"Get package" command is for getting packages form Version control that are not yet in the project. If you want to get a package taht is already in your project, use" get latest" or "check out".

According to Include Other Users' Packages the "Get package" command work as you discribed.

The EA project structure is

Model
   |
   -View
                |
                -Package

Usually there is no need to have controlled package at the model (root) level. Indeed the Model is little bit different from normal package.
Peter

GBeutler

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Import of root nodes from SVN
« Reply #4 on: November 12, 2007, 08:24:54 am »
Hi,

thanks for the help. I think I will change my models to avoid root nodes. This won't be too much effort and seems to be the right way to act with nodes.

best regards,

Guido

gpc

  • EA User
  • **
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: Import of root nodes from SVN
« Reply #5 on: November 13, 2007, 03:25:11 am »
Hi Guido,
When you did get package, I think there should have been a pop up to ask if you wanted to load as a root node (yes) or under the selected package (no) ?
However, I usually avoid the root node as you cannot always easily move items around when performing initial restructuring of the project as there are some restrictions.

GBeutler

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Import of root nodes from SVN
« Reply #6 on: November 13, 2007, 04:26:57 am »
Hi,

when creating a new package there is the popup. When importing there is no additional popup, the package imported from SVN is alway under the currently selected package. I was not able to select no package. Maybe there is another way to get to the menu item without using the context menu and I havn't found it yet.

best regards,

Guido

gpc

  • EA User
  • **
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: Import of root nodes from SVN
« Reply #7 on: November 13, 2007, 05:01:49 am »
Hi Guido,
Yeah, just tested again and it's only one package that causes the popup. I must have created that as a root node and so get asked each time if I want to keep it there. So I guess if you really want to import a 'root' node, you'll have to pull in your package, create a new root node and transfer contents across?

GBeutler

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Import of root nodes from SVN
« Reply #8 on: November 13, 2007, 05:09:15 am »
Hi,

won't work because the content of the node is at the version control system. If I would move the content I would lose all version information, won't I? Without svn you are right.
This is th reason why I can not pull the node to root level after importing, EA refuse this.

gpc

  • EA User
  • **
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: Import of root nodes from SVN
« Reply #9 on: November 13, 2007, 05:22:07 am »
Yes, I don't think you'll be able to perform the "conversion" without some distruption. The version info should still be there under the old xmi file in version control - I think trying to keep the same xmi filename may just lead to more confusion. It won't be easy to roll back to a prior version that's for sure, but then, as far as I know, that isn't an easy task anyway.