P4.fetch_change() creates a change spec with Change equal to ‘new’. I need to create a change spec with an actual number (that won’t collide with any other changes). IOW, I need to be able to reserve a changelist number.
How can this be done with P4Python?
Context: My script takes in an already-existing changelist number. I need to be able to test that the script works correctly.
P4.save_change() generates a changelist number — that is, it creates a numbered, pending changelist. Try something like: