user1173223
user1173223

Reputation: 23

How to merge files in ClearCase with files from other directory?

I have files in directory /vobs/project/code_dir_staff/code in some branch and want to:

The destination 'code' directory already exist and have some history.
I don't need source directory in destination branch.

How to do it simple?

Upvotes: 2

Views: 1373

Answers (1)

VonC
VonC

Reputation: 1323503

I would:

  • First, do a classic merge.
  • Then in the destination branch, move (through the ClearCase Explorer) those file to the existing code directory
  • Finally remove (through the ClearCase Explorer) the directories you do not want to see.

That will work only for Base ClearCase, not for UCM (unless you are in a Vob component): you cannot move files (with their history) from one component to another.

Moving files from the ClearCase Explorer will preserve the history of files, will checkout the source parent directory and un-catalogued those files, and will checkout the destination directory to reference the same files.

Upvotes: 2

Related Questions