The Rename command changes the pathname at which an element is accessed. You can use this command to perform a simple renaming, to move an element to another directory, or both. You cannot move an element to another depot.Select an element in the Details pane of the File Browser. Then choose Rename from the selection's context menu.In either case, a single move transaction records the changing of the element's pathname in your workspace. The renamed object is activated (it is included in the workspace's default group), and the (kept) and (member) flags are added to its status.
1.
2. This creates a new version of the file element in your workspace, recording the name change, but not the content change. To preserve the content change, you must use a separate Keep command to create a second new version.The ability to reuse the name of a renamed element provides significant flexibility for project refactoring tasks. But it also introduces a complication: what happens if you rename an element, create a new element at the same pathname, then invoke the Revert to Basis command on the renamed element?The renamed element cannot revert to its old pathname, because there’s a new element at that pathname. The original element simply disappears from your workspace. You might wonder “Why does the element not get (stranded) status?” The Revert to Basis command makes an element inactive in the workspace. The (stranded) status applies only to active elements.
1. Rename the new element, to a name like myfile.java.DISCARDED.
4. At this point, the original element reappears in the Details pane, with (missing) status.
1.
Micro Focus |