How can I change the description of a existing changelist in command line?

北城余情 提交于 2019-12-10 01:50:20

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!