How to change p4 view description

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 I entered in the submit form was bad. How do I change it?

I have checked the docs for p4 submit and have no idea what -i does. Perhaps what I need. I tried:

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

      

and received:

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

      

Thank!

+3


source to share


2 answers


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

p4 change 9

      

This will bring up a list of changes in the editor for you to edit. Make your changes, save the file, then exit the editor. Then run:

p4 submit -c 9

      

You may already know this, but the "invalid confirmation" message means that your Perforce admin has some kind of custom trigger that was blocking the submission - the trigger could literally do anything, so if it continues to fail, you might need to check with your administrator to see what you should do (and if the trigger is working correctly).

If you were editing the changelog form from within a script, you would use the -i flag:



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

      

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

With a new Perforce server, you can provide a description at submission time with:

p4 submit -d "Better description"

      

but since the "-d" flag is not listed in your usage message, I assume you are using an older version.

+3


source


Even if the changelog has already been submitted, you can change the description with



p4 change -u 9

      

+4


source







All Articles