How to clone perforce label?

r_sathliya created the topic: How to clone perforce label?
Hi All,
I need to clone Perforce lable to automate my task. Could anyone please help me in this?

Thanks,
Raju

rajeshkumar replied the topic: Re: How to clone perforce label?
Hi Raju,

I knw its very late reply. I m sure you must have got the solution but for reference i am putting.. hope you wont mind 🙂

Assume Copy a label’s contents to another label. Assume that the existing label
is “xxx” and the new label is to be “abc”.
A two-step process:
1. Make the label using
“p4 label –t xxx abc”
2. Populate it using
“p4 labelsync –l abc //…@xxx”

Note that the second step is really identical to the second step in the previous question – we’re just specifying a very specific list of revisions [of files] to include in the new label.
(Also…
In 2005.1 and later, “p4 tag” will make the label and apply it to a set of files.)
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

rajeshkumar replied the topic: Re: How to clone perforce label?
TO give you more specific reason.

Creating a Label in perforce can be done by following 2 steps..

Running p4 label allows you to configure the mapping that controls the set of files that are allowed to be included in the label. After configuring the label, use p4 labelsync or p4 tag to tag files with the label.

p4 label -t xxx abc
p4 labelsync -l abc //…@xxx
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x