Discussion Forum for StarTeam Users


Re: Copy (not move, not share) a folder


[ Follow Ups ] [ Post Followup ] [ Discussion Forum for StarTeam Users]

Posted by Steve L on October 05, 2000 at 09:37:47:

In Reply to: Copy (not move, not share) a folder posted by Steve Cohen on October 03, 2000 at 18:30:02:

: I want to accomplish the following in Star Team. It
: is exactly similar to the Branch and Share operation
: Visual Source Safe.

: I see how to move a folder to another project in Star
: Team (but I don't want to lose the old one).

: I see how to share a folder to another project in Star
: Team (but I don't want revisions to propagate between the
: two instances in either direction).

: I would like history to move with the copy.

: How can I accomplish this? Everything I have tried so far
: has failed.

Hi Steve,

From the actions you described below, it sounds like you are on the right track. You set the folders to branch on change, but not the files. Here is what needs to be done:

- Share the folder that you want.
- In the new instance (target share) of the folder, go to Advanced->Behavior.
* Set the 'Branch on Change' setting, and "Apply to Entire Folder Tree".
-- At this point, you have set the folder objects to branch on change. That means when the (target share) folder object is next updated, it will branch. By update I mean a change in its properties. So what should be done is make a quick modification to the description of the folder (in Properties), which will branch the folder. If you decide not to do this, new objects added to the source share folder will propagate to this target folder. --
- Now you have branched the folders; you need to now branch the files.
- Select all of the files (using All Descendants to select every file in this tree), and go to Advanced->Behavior.
* Set the 'Branch on Change' setting.
-- Now your files are set to branch on change. So changes made to these files in the source share will propagate to this target item until such time that the target item is modified. If you want to branch these files now, you can either do the same as we did with the folders (modify the description, which would probably be very tedious with a lot of files). For files, the easiest way to branch is to do the following (in the target share):
* Check out all of the files.
* Force check them back in
-- This will revision the files, and therefore branch them. --

Regards,
Steve
StarBase Tech Support


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:


[ Follow Ups ] [ Post Followup ] [ Discussion Forum for StarTeam Users]