I have 1,000 files that I want to add/move to a single changelist. In other commands such as “add” you can create a list of file paths in a text document and add a “-x” parameter before the file path, creating something like this: p4 -x path/to/text/file/with/paths.txt add
.
With “p4 change” however, you have to add your list of files as a field parameter specifically, which as far as I know can’t read from an external list: p4 --field "Description={description}" --field "Files=path/to/individual/file.txt" change -o
. I can’t put them all in a long list since that’d go over the character limit for the command, and inputting each path in to a separate “subprocess.run” command would take a really long time to run through.
corvineMaster is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.