Jump to content


New label based on template

label

  • Please log in to reply
2 replies to this topic

#1 okless

okless

    Member

  • Members
  • PipPip
  • 10 posts

Posted 09 January 2017 - 09:04 AM

I need a command to create a new label based on another (I do it to rename a label).
I can use -t but it requires opening an editor.
If I use -o it does not take template.

Right now my command looks like this:
p4 label -o -t $oldname $newname

Any idea?

Thanks in advance!

#2 okless

okless

    Member

  • Members
  • PipPip
  • 10 posts

Posted 09 January 2017 - 12:42 PM

Fixed by doing echo -e| p4 label

#3 Mailman Sync

Mailman Sync

    Advanced Member

  • Maillist Aggregator
  • 2495 posts

Posted 09 January 2017 - 04:05 PM

Originally posted to the perforce-user mailing list by: Michael Mirman


Try

                p4 --field Label=mynewlabel label -o oldlabel | p4 label -i





--

Michael Mirman

MathWorks, Inc.

508-647-7555



-----Original Message-----

From: perforce-user [mailto:perforce-user-bounces@perforce.com] On Behalf Of okless

Sent: Monday, January 9, 2017 4:05 AM

To: perforce-user@perforce.com

Subject: [p4] New label based on template



Posted on behalf of forum user 'okless'.



I need a command to create a new label based on another (I do it to rename a

label).

I can use -t but it requires opening an editor.

If I use -o it does not take template.



Any idea?



Thanks in advance!







--

Please click here to see the post in its original format:

  http://forums.perfor...sed-on-template

_______________________________________________

perforce-user mailing list  -  perforce-user@perforce.com

http://maillist.perf...o/perforce-user
_______________________________________________
perforce-user mailing list  -  perforce-user@perforce.com
http://maillist.perf...o/perforce-user






Also tagged with one or more of these keywords: label

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users