Reputation: 115
Using CMD why this does not work ? p4 --field Description="New CL description here" change -o changelist_number | p4 change -i
P4 change -o gives me the list of files and an empty description field. What is the best cmd batch command to change the description ? Considering I don't want to replace < enter the description here > with a string finder.
Upvotes: 2
Views: 2666
Reputation: 1
This approach works for single line description but not multi-line description. Suppose I have a variable $desc
that contains multiple lines, how will I use it with above command, since this is not working:
p4 --field "Description=$desc" change -o CHANGE | p4 change -i
Upvotes: 0
Reputation: 71517
To change the description of a pending changelist, do:
p4 --field "Description=NEW DESCRIPTION" change -o CHANGE | p4 change -i
Note that you need an up to date p4 client executable (for the --field
flag) and that this won't work on a submitted changelist since they're protected from editing.
Upvotes: 2