¿Sub-ramificación en ClearCase?

When I want to use a branch in CC, I usually put something like this in the config spec:

element * .../first_branch/LATEST
element * .../Main/LATEST -mkbranch first_branch
element * ../Main/LATEST

Now, I want to create a branch that is a sub-branch of the first one. Let's say it's called second_branch (I'm creative today). How would that config spec look like?

preguntado el 08 de enero de 11 a las 19:01

2 Respuestas

Me gusta:

element * .../second_branch/LATEST
element * .../first_branch/LATEST -mkbranch second_branch
element * .../Main/LATEST -mkbranch first_branch
element * ../Main/LATEST

Your view will now look at the latest version on second_branch, or, if it doesn't exist, the latest version on first_branch, or, if it doesn't exist there, the latest version on the main branch. Upon checking out a file, a new version element will be created on respectively second_branch and first_branch as necessarily.

I don't have access to a ClearCase instance right now, so I can't double check your last two lines, but I think that perhaps you meant this instead?

element * .../second_branch/LATEST
element * .../first_branch/LATEST -mkbranch second_branch
element * /Main/LATEST -mkbranch first_branch

Respondido el 08 de enero de 11 a las 22:01

To add to Kim's answer, I much prefer starting a branch from a label than the LATEST versions selected by a branch.
That way, I know what 'second_branch' stands from and where it comes from.
(coming from the LATEST of another branch means it comes from a moving point which represents something different as time goes by)

element * .../second_branch/LATEST
element * A_LABEL -mkbranch second_branch
element * .../first_branch/LATEST
element * .../Main/LATEST -mkbranch first_branch
element * ../Main/LATEST

Si configura A_LABEL on a view configured to be:

  • en el LATEST de 'first_branch'
  • at a 'stable' state

,then you can branch from a known point.

Respondido el 08 de enero de 11 a las 23:01

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.