问题
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?
回答1:
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
.
Source
But you can always change the description when you submit:
p4 submit -d "description"
This only works on the default change list.
Source
回答2:
Use the following command:
p4 change -u CL_number
For details, please visit this page.
回答3:
This command line worked for me:
p4 --field Description="New CL description here" change -o *changelist_number* | p4 change -i
来源:https://stackoverflow.com/questions/5634097/how-can-i-change-the-description-of-a-existing-changelist-in-command-line