Reputation: 693
The command "p4 change" prompts a editor and needs a form. But I want to do this in command line.
How can I achieve this?
Upvotes: 17
Views: 54337
Reputation: 166
This command line worked for me:
p4 --field Description="New CL description here" change -o *changelist_number* | p4 change -i
Upvotes: 13
Reputation: 438
Use the following command:
p4 change -u CL_number
For details, please visit this page.
Upvotes: 29
Reputation: 137148
There's always the -i
command:
Read a changelist description from standard input. Input must be in the same format used by the p4 change form.
As Bryan points out in his comment the best approach is probably to run change -o
, redirect the output to a file, process the file with other shell commands, and then send that file back to the server with change -i
.
But you can always change the description when you submit:
p4 submit -d "description"
This only works on the default change list.
Upvotes: 10