I have a variable, fulltext, which contains the full text of what I want the description of a new changelist in P4V to be. There are already files in the default changelist.
I want to use python to populate the description of a new changelist (based on default) with the contents of fulltext.
How can this be done. I’ve tried this:
os.sytem("p4 change -i")
print fulltext
But that doesn’t create any new change list at all. I don’t know how to tell p4 that I’m done editing the description.
If you’re trying to write Python programs that work against Perforce, you might find P4Python helpful: http://www.perforce.com/perforce/doc.current/manuals/p4script/03_python.html