Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Perforce : wanted to Multiline description

Tags:

perforce

Hi I wanted to put multi line description using following command

p4 --field Description="MY CLN Header \\n my CLN complete description in two -three lines update " change -o |p4 change -i
like image 419
user3664223 Avatar asked Feb 11 '26 15:02

user3664223


1 Answers

If you can't convince your shell to pass the required linebreak and tab characters as part of the command line argument, try telling the --field option to append the second line to the first:

p4 --field Description="MY CLN Header" --field Description+="my CLN complete description in two -three lines update" change -o|p4 change -i

(edit) or, since that's buggy, you could do something like this using P4Perl:

$change = $p4->FetchChange();
$change->_Description( "MY CLN Header \n my CLN complete description in two -three lines update " );
$form = $p4->FormatChange( $change );
$p4->SaveChange( $form );
like image 123
Samwise Avatar answered Feb 17 '26 09:02

Samwise