Renaming a folder while preserving history of contents
Hello...
I have a component, ComponentA, and within that component are some folders: root root\libraries root\applications root\applications\managmentstudio in the management studio are several subfolders, full of source code files. root\applications\managmentstudio\folderA (file.txt, file2.txt, file3.txt) root\applications\managmentstudio\folderB (file4.txt, file5.txt) managmentstudio is spelled wrong. I'd like to rename it to managementstudio to satisfy my perfectionist self. :) Doing so results in a folder delete, and subfolders foldera and folderb are also deleted, and then re-added to RTC, along with their contents. Once delivered, viewing history of file.txt in folderA shows that it was added. None of its history is available from prior to the rename of the managmentstudio folder. Is there a way to preserve the history of all the files buried in the folder tree whose ancestor is being renamed? |
4 answers
According to this answer there is currently no way to do what you want to do:
http://jazz.net/forums/viewtopic.php?t=9718&highlight=rename+folder 2 Enhancements, scheduled for RTC v3.0 do address this: Enhancement 108803 and Enhancement 97855. Both are in the "Triaged" state at this time. - Walter Hello... |
Geoffrey Clemm (30.1k●3●30●35)
| answered Apr 09 '10, 9:52 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Renaming a folder while preserving history of contents is the expected
behavior when using RTC. But you currently need to use the RTC specific commands when doing the renaming, since if you make your changes directly to the file system, when RTC scans the file system, it looks like you've deleted the old tree at the old name and created a new tree at the new name. The easiest way is through the Eclipse client ... just apply the "Team -> Rename in Repository" operation to the folder. I agree this isn't obvious ... work item 19663 requests that this happen automatically when you use the Eclipse rename/move operations, rather than requiring the use of a special Team operation. You can also use the command line client. Not sure about the VS client, and I don't think you can do this yet from the web client. Cheers, Geoff wmansur wrote: According to this answer there is currently no way to do what you want |
Geoffrey Clemm (30.1k●3●30●35)
| answered Apr 09 '10, 10:04 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I should have checked the status of this functionality *before* posting
(:-). In particular, my comment about the lack of support for standard Eclipse rename/move operations was incorrect. Since RTC-2.0, you can use the standard Eclipse "Refactor -> Move" and "Refactor -> Rename" operations, and the history of the contents is preserved. The "Team -> Rename in Repository" operation is only needed for the special case where you are renaming a folder that is an immediate child of the root of the RTC component. If you find that is not the case, please follow-up. Cheers, Geoff Geoffrey Clemm wrote: Renaming a folder while preserving history of contents is the expected |
Visual Studio client allows renames of folders/files that are part of a shared solution structure
|
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.