Jump to content

Applying Labels to specific revisons


omri.spector

Recommended Posts

Sometimes we need to move a label between 2 revisions of the same file. Typical reasons for this:

(1) The label was applied on the wrong revision: an unwanted fix entered the version by mistake

(2) Reconstructing external history: a file held on a different system now enters plastic but we want to "fake" the history by applying relevant labels to it's revisions

Another interesting scenario is when we want to avoid applying a label to part of our workspace:

(1) A file was checked but its latest revision should not accept the label

Most of these cases can be avoided if "Branch by Task" is implemented - but accidents do happen.

Is there any way to move labels between revisions of a file in Plastic?

Link to comment
Share on other sites

  • 8 months later...

We consider labeling individual revisions extremely dangerous.

We liked the concept back in 2005 but since then experience proved that except for the really advanced users... it is a dangerous bomb for the rest of us.

That's why we removed it loooong ago.

In 4.0 we use the same technique all modern SCMs follow: label changesets.

Link to comment
Share on other sites

hi,

I am currently using PlasticSCM-3.0.187.30, i try to apply a label name AUD_v01.00 on to a file aud.c revision 0. by refer to the post from dave, i try to typing as below:

C:\Program Files\PlasticSCM\client>cm label AUD_v01.00 d:\Local_SW\aud\aud.c#/main#0

but i get the error as below:

Could not apply label d:\Local_SW\aud\aud.c#\main#0. The item is private.

The path for the file and the label name are valid because If i type as below:

C:\Program Files\PlasticSCM\client>cm label -r AUD_v01.00 d:\Local_SW\aud\aud.c

Then it is ok, i get the feedback and the label will attach on the latest revision:

d:\Local_SW\aud\aud.c correctly labeled.

Is there any thing i type wrong? or the CLI is different for 3.0?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...