I have an issue with undoing changes in Perforce using p4python given that I have sumitted the changelist that I now want to undo. My idea is first to create a changelist and then run the undo. However, Iam doing something wrong and the file doesnt get undone.
# new_cl is the created changelist
# cl_to_undo is the changelist to undo.
# description is string
P4.run("undo", '-c'+new_cl, filePath+"@" + cl_to_undo, description)
# Submit
P4.submit(new_cl)
Would appriciate any help. Thanks.