How to create a permanent change list from the command line

I am trying to create an empty change list from the command line using the command p4 change -i, but it seems that this command is not doing anything, I am not getting an error / success message, nothing is being returned at the command line, and I have to kill it with ctrl + c .

My p4 client works, I can see all my information and do all the other operations correctly, it seems that the problem is only to create a new pending list of changes.

Has anyone had the same problem?

Ps I checked the P4V method to create an empty change list and actually used the command p4 change -iwithout any problems, but if I try to use the same command from cli, it will fail.

+4
source share
3 answers

If you use the interactive command line, the regular "p4 change" command is the way:

p4 change

This opens the changelist specification in the editor so you can fill it out and saves the changelist when you save the file in your editor and exit it.

, "p4 change -i", , stdin. "p4 change -o" , "p4 change" ( stdout ), , , / , , -field:

p4 --field "Description=My pending change" change -o | p4 change -i

, , , "":

p4 --field "Description=My pending change" --field "Files=" change -o | p4 change -i
+12

"p4 change"

+1

My p4 --fields. .

#Powershell commandlet
echo "Change: new`nClient: <client-name>`nUser: <user-name>`nStatus: new`nDescription: NewCL"|p4 change -i

<>.

.

#Powershell commandlet
PS C:\Users\sahil> echo "Change: new`nClient: <client-name>`nUser: <user-name>`nStatus: new`nDescription: NewCL"
Change: new
Client: <client-name>
User: <user-name>
Status: new
Description: NewCL

, echo , p4 change -i.

`n .

, Files, , .

-. perforce p4 --fields.

0

Source: https://habr.com/ru/post/1651293/


All Articles