SDGator
SDGator

Reputation: 2077

Can I move a Perforce label from one revision to another?

I'd like to have a "LAST_KNOWN_GOOD" label that points to the latest database that passed nightly regressions (done automatically by the regression script). The idea being that folks can just sync to that label when the head of tree is broken.

So, the same label spec would get updated over and over. I'm not seeing anything obvious on how to do this in the perforce doc.

Upvotes: 1

Views: 589

Answers (2)

jgritty
jgritty

Reputation: 11915

p4 labelsync -l LAST_KNOWN_GOOD

It's really as simple as that. As long as the label isn't locked, and the label already exists.

The p4 label command can create a label.

You can always learn more about any command by typing p4 help command

Upvotes: 1

Bryan Pendleton
Bryan Pendleton

Reputation: 16359

Yes, if the label is not locked, you can change the contents of the label. Have a look at the 'p4 labelsync' command.

Upvotes: 0

Related Questions