Moving a set of version in a branch to main branch

29 views
Skip to first unread message

Vijay

unread,
Nov 10, 2009, 8:52:38 AM11/10/09
to ClearCase
Hi

I have the following setup

Main
|
(0)
|
|
|
|
(1)--------------------------(branch)
| |
| (0)
| |
| |
| |
| |
| |
(2) (1) TEST1
| |
| |
| |
| |
| |
| |
(3) (2) TEST2

In the above setup. I want to move the version 1 & 2 in branch with
label information to main branch as 4th and 5th version.

Is that possible and kindly guide me

Marc Girod

unread,
Nov 17, 2009, 3:45:56 AM11/17/09
to ClearCase
On Nov 10, 1:52 pm, Vijay <m.vijaygan...@gmail.com> wrote:

> In the above setup. I want to move the version 1 & 2 in branch with
> label information to main branch as 4th and 5th  version.

> Is that possible and kindly guide me

Possible, of course. Useful ? No.
It may either result in duplication or loss of information.

But, to do it (assuming you renamed the main brtype into Main, and the
element name was foo):

ct co -nc -nda -bra /Main foo
ct ci -nc -rm -from foo@@/TEST1 foo
ct co -nc -nda -bra /Main foo
ct ci -nc -rm -from foo@@/TEST2 foo

To lose information, just remove the branch:

ct rmbranch -f foo@@/Main/branch

Marc
Reply all
Reply to author
Forward
0 new messages