MQ Gu
MQ Gu

Reputation: 693

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

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

Answers (3)

Gene Walters
Gene Walters

Reputation: 166

This command line worked for me:

p4 --field Description="New CL description here" change -o *changelist_number* | p4 change -i

Upvotes: 13

nafser33
nafser33

Reputation: 438

Use the following command:

p4 change -u CL_number

For details, please visit this page.

Upvotes: 29

ChrisF
ChrisF

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.

Source

But you can always change the description when you submit:

p4 submit -d "description"

This only works on the default change list.

Source

Upvotes: 10

Related Questions