Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 481
Brian Carlton Avatar asked Oct 14 '09 19:10

Brian Carlton


1 Answers

If you're looking for a UNIX/*NIX command line solution, this will give you a new, clean changelist and keep the number in $cl:

export cl=`p4 change -o | grep '^\(Change\|Client\|User\|Description\)' | p4 change -i | cut -d ' ' -f 2`
like image 115
Martin Probst Avatar answered Oct 18 '22 23:10

Martin Probst