It's all about the answers!

Ask a question

SVN import from branch without project folder


Robert Studera (4151) | asked Apr 27 '10, 11:42 a.m.
Hi there,

In my project I have to migrate from a SVN repository where there is only one Eclipse project per branch.
So in the SVN dump the structure is:



project
branches
BRANCH1
src
lib
...
BRANCH2
...
tags
trunk
src
lib
...



So when I import with the SVN Importer I end up with
either a structure like

COMPONENT
src
lib
...

which has no folder for the Eclipse project
or I get a structure like


COMPONENT
trunk
src
lib
...


where the name of the Eclipse project is 'trunk' or the name of the branch.

Has anyone an idea how to map such a structure into a reasonable Eclipse project, when doing the SVN import?

Thanks.

Robert Studera

2 answers



permanent link
Michael Valenta (3.7k3) | answered Apr 28 '10, 9:05 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
The importer doesn't support renaming of folders during import. However,
you can load a component root folder as a project (just as you can load
trunk as a project using SVN) so the first structure you mentioned would
be the structure you want (i.e. the Component itself acts as the Eclipse
project).

Michael

studera wrote:
Hi there,

In my project I have to migrate from a SVN repository where there is
only one Eclipse project per branch.
So in the SVN dump the structure is:



project
branches
BRANCH1
src
lib
...
BRANCH2
...
tags
trunk
src
lib
...



So when I import with the SVN Importer I end up with
either a structure like

COMPONENT
src
lib
...

which has no folder for the Eclipse project
or I get a structure like


COMPONENT
trunk
src
lib
...


where the name of the Eclipse project is 'trunk' or the name of the
branch.

Has anyone an idea how to map such a structure into a reasonable
Eclipse project, when doing the SVN import?

Thanks.

Robert Studera

permanent link
Robert Studera (4151) | answered May 04 '10, 7:36 a.m.
Thank you, Michael!
This would be a solution for the initial migration. In the long run we might want to have more than one eclipse project in one component, But that will be a major reorganisation anyway

Robert.

The importer doesn't support renaming of folders during import. However,
you can load a component root folder as a project (just as you can load
trunk as a project using SVN) so the first structure you mentioned would
be the structure you want (i.e. the Component itself acts as the Eclipse
project).

Michael

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.