I get a changelist number and I am able to add the files to the changelist
>>> createdCLNumber
'1157545'
>>> p4.run_add("-c", createdCLNumber, "/Users/ciasto/ciasto_piekarz/sandbox/main/upgrade_tools/upgrade_gitlab")
['//depot/td/main/bin/upgrade_gitlab#1 - currently opened for add']
but when I try to submit them I get the error.
>>> p4.run_submit(changeList)
P4.P4Exception: [P4#run] Errors during command execution( "p4 submit -i" )
[Error]: 'No files to submit.'
If you want to submit a numbered changelist (implied by the fact that you used p4 add -c CHANGELIST
), do:
p4 submit -c CHANGELIST
See p4 help submit
:
submit -- Submit open files to the depot
p4 submit [-Af -r -s -f option --noretransfer 0|1]
p4 submit [-Af -r -s -f option] file
p4 submit [-Af -r -f option] -d description
p4 submit [-Af -r -f option] -d description file
p4 submit [-Af -r -f option --noretransfer 0|1] -c changelist#
p4 submit -e shelvedChange#
p4 submit -i [-Af -r -s -f option]
--parallel=threads=N[,batch=N][,min=N]
If you only specify a single argument, it's interpreted as a file path:
p4 submit [options] file
To specify a changelist you want this form:
p4 submit [options] -c changelist#