Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the p4 submit description

Tags:

perforce

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!

like image 646
Bowser Avatar asked Dec 29 '14 18:12

Bowser


People also ask

How do I change my p4 description?

p4 change brings up a form for editing or viewing in the editor defined by the environment variable P4EDITOR . When no arguments are provided, this command creates a numbered changelist. All files open in the default changelist are moved to the numbered changelist.

How do I edit a Perforce file?

The Open for Edit Options page Specify filetype: Use this option to change the filetype of Perforce-managed files. Click the checkbox and select the filetype and filetype modifier(s). When you submit files opened this way, the new revisions in the depot will have the new filetype.

How do I undo a p4 revert?

The p4 undo command opens files to undo a set of previously submitted changes. The undone changes remain a part of the file history, but the new revisions submitted after p4 undo reverse their effect. If a single revision is specified, the specified revision is undone.


1 Answers

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

p4 change -u 9
like image 192
hogi Avatar answered Jan 04 '23 00:01

hogi