Creation of Root Folders when importing from an SVN Dump file
![]()
Hello All, I am hoping that someone is able to assist...
I am trying to create new components and populate these with folders/files from and SVN dump file. What I am after though is a structure similar to the following: Component A --> CORE_CODE (root folder) --> AJAX (Subfolder) --> FileA --> FileB --> CLASSES (Subfolder) --> FileA --> etc........ However the import makes the folders AJAX and CLASSES etc. the root folders. I have tried various obtions but cannot seem to get the structure I require. When I import from the SVN dump I am not able to select the the option for importing the folder as a root as when selecting the option 'Import the selected SVN folders as top_level folders in the target Jazz component' does not allow me to add the folder and it's subfolders to be imported. SVN structure is as follows: --> All Projects --> Project A --> Branches --> Latest Branch (I want to add this folder) --> AJAX (Subfolder) --> FileA --> FileB --> CLASSES (Subfolder) --> FileA So whatever I seem to do (admitedly this could be wrong) what I actually get is the following: Component A --> AJAX (Subfolder) --> FileA --> FileB --> CLASSES (Subfolder) --> FileA --> etc........ I hope I have sufficiently explained this and someone is able to assist |
2 answers
![]()
Jason Wilson,
I imported into RTC two other Subversion internal projects a year ago and I remember running into this same issue where the top-level SVN directories wouldn't map as I wanted. I don't believe I got around this but it wasn't a critical thing and we ended up importing the subdirectories at the root since it made more sense anyway in our situation. Assuming the article Tim Mok posted (which I used) isn't working, you can always just fix it post-import. 1. Import the folders as the tool wants (what you didn't want): Component A --> AJAX (Subfolder) --> FileA --> FileB --> CLASSES (Subfolder) --> FileA --> etc........ 2. Once you are committed and code is checked-in, load the workspace into a sandbox (very important that you select 'Browse the components to select the folders to be loaded' when you Load, then click the component until it shows a checkbox so it loads the component name into the sandbox) and then in the sandbox create your top-level directory 'Core_V1.2.0' and drop a .project in there or some dummy file, checkin then commit. 3. Then move the top-level directories you don't want at the root to under the new 'Core_V1.2.0' directory. RTC moves files with version history, and it doesn't track directory versions (unlike ClearCase.) The trick here is that you can only move files through the Package Explorer view, so you have to have the code loaded in an Eclipse project that you want to move. This article shows you how to do a quick-and-dirty move like this: https://jazz.net/library/article/126/#How_do_I_move_a_resource_to_another_component |
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.