How to change the p4 submit description

p4 shelve
p4 changelist
p4 list
p4 resolve
p4 integrate
perforce copy submitted changelist
perforce delete submitted changelist
p4 changes path

I am new to Perforce. Here's the problem:

$ p4 submit
Change 9 created with 1 open file(s)
Submitting change 9.
Locking 1 files ...
Submit validation failed -- fix problems then use 'p4 submit -c 9'.

The problem is that the description that I entered into the submit form was bad. How do I change it?

I checked the docs for p4 submit, and didn't understand what -i does. Maybe that's what I need. I tried:

$ p4 submit -i "Better description" -c 9 filename

and got:

Usage: submit [ -i -s -r ] [ -c changelist# ] [file]
Missing/wrong number of arguments

Thanks!

Since this is a pending changelist, and since it doesn't sound like you need to do this from a script, just do:

p4 change 9

This will bring up the changelist form in an editor so you can edit it. Make the edits, save the file, then exit the editor. Then do:

p4 submit -c 9

You may already know this, but the "validation failed" message means that your Perforce admin has some kind of custom trigger set up that blocked the submit -- the trigger could be doing literally anything, so if it keeps failing you may need to check with your admin to see what you're supposed to be doing (and whether the trigger is behaving correctly).

If you were editing the changelist form from a script you would use the "-i" flag as follows:

p4 change -o 9 | sed -e "s/magic/regex/" | p4 change -i
p4 submit -c 9

but obviously as an end user it's easier to just do "p4 change 9" and use the editor than to write a shell script to edit the description for you.

With a newer Perforce server you can specify the description during submit with:

p4 submit -d "Better description"

but since the "-d" flag isn't listed in your usage message I'm guessing you're using an old version.

p4 submit // P4 Command Reference, To edit the description of a pending changelist, or to view the fields of a submitted changelist, use p4 change changelist . Changelist number - pending versus  Description To submit the default changelist, use p4 submit. To submit a numbered changelist, use p4 submit -c changelist. Using the -c option also allows you to change the description information for a numbered changelist.

Even if the changelist is already submitted you can change the description with

p4 change -u 9

p4 change, No change description dialog is presented. The -d option works only with the default changelist, not with numbered changelists. Form Fields  How to change the p4 submit description. perforce. Since this is a pending changelist, and since it doesn't sound like you need to do this from a script, just do: p4 change 9 This will bring up the changelist form in an editor so you can edit it. Make the edits, save the file, then exit the editor.

in History tab, right click on your entry, "view changelist", then "edit", modify your description and "ok"

How to change the p4 submit description, p4 [ g-opts ] submit [-r] [-f submitoption ] -d description file To change this default behavior, set the SubmitOptions: field in the p4 client form for your workspace. To change the description information for a numbered changelist, use p4 change-c changelist#. A single file pattern may be specified as a parameter to a p4 submit of the default changelist. This file pattern limits which files in the default changelist are included in the submission; files that don't match the file pattern are moved to the next default changelist.

[p4] How to submit changelist with change description of multiple , Since this is a pending changelist, and since it doesn't sound like you need to do this from a script, just do: p4 change 9. This will bring up the  The command p4 -Ztag change -o displays, in addition to other information, the access time for shelved files. You can use this information to determine if a shelved file has been abandoned and needs to be removed. To edit the description of a pending changelist, or to view the fields of a submitted changelist, use p4 change changelist.

[PDF] P4V Cheat Sheet, Perforce changelist submit description can be one line or multiple lines. While using P4V, it is easy to specify multiple line change description. But how to do it  p4 change 9 This will bring up the changelist form in an editor so you can edit it. Make the edits, save the file, then exit the editor. Then do: p4 submit -c 9

Perforce: How to update a submitted changelist?, p4 branches Display list of branches p4 change Create or edit a changelist description p4 changes Display list of pending and submitted changelists. Perforce changelist submit description can be one line or multiple lines. While using P4V, it is easy to specify multiple line change description. But how to do it with the p4 command? p4 submit -d "A lot of changes and pressed enter, the change list was submitted right away. I was expecting line continuation so that I can type more lines of change

Comments
  • You should be able to change the commit message as described [here][1]. [1]: stackoverflow.com/questions/5634097/…
  • Thanks a lot, the best and the most concise answer!