Change 8495

paul_allen (Paul Allen)
Paul Allen committed this change into //guest/perforce_software/p4perl
Request Review
Download .zip
Added the ability for P4Perl to preserve comments in forms.

This is for the commands $p4->parse_spec() and $p4->format_spec(), used typically
in form-in and form-out triggers. $p4->parse_spec() should receive a fully formed
spec form (that is untagged), such as a label or client, as a user would receive
if they run 'p4 client -o' from the command line.

Up to now, the comments are stripped by the $p4->parse_spec() command and not
added in again when the document is reformatted. This change aims to alter this
behaviour.  Comments are stored as a 'comment' key in the spec hash and are
accessable.  For example:

   my $spec = $p4->ParseGroup( 'my_group' );
   print $spec->{'comment'};

Change to be documented in the release notes for 2014.1
  • Files 1
  • Comments 0
1 edited 0 added 0 deleted
P4.pm#2
Loading...
Tip: Use n and p to cycle through the changes.