Search code examples
version-controlperforcechangelist

Easy way to create perforce changelist with multiple filespecs


I wish to submit a changelist with multiple filespecs, e.g. ...this... ...file.h ...theother.... Perforce won't let me. I could create a changelist from a file but I do want a chance to review the files and enter the comment. This is for a command-line solution.


Solution

  • You can create a pending changelist, then move all the files you want into that, before submitting it. Even from the command-line, although I find p4V easier to use for this functionality.

    http://www.perforce.com/perforce/doc.current/manuals/cmdref/change.html#1040665

    p4 change
    

    to create a pending changelist.

    p4 reopen 
    

    to move files into the pending changelist.