Re: [p4] Passing description into p4 shelve using P4 perl module

Sambwise <[email protected]>
Newsgroups gmane.comp.version-control.perforce
Message-ID <[email protected]>
Posted on behalf of forum user 'Sambwise'.

I've never used P4Perl so there may be a bit of handwaving here.  
:)

The equivalent of the "p4 change -o" should be
"p4.FetchChange()":

https://www.perforce.com/perforce/r15.1/manuals/p4script/perl.p4.html#perl.p4.fetch_spectype

There's an example in that doc that looks VERY promising for what you're
doing:

$change      =  $p4 -> FetchChange ();
$change ->{   'Description'   }   =   'Some description'
;
$form        =  $p4 -> FormatChange (
$change  );
printf (   "Submitting this change:\n\n%s\n" ,  $form  );
$p4 -> RunSubmit (  $change  );
I think if you just replace "RunSubmit" with "RunShelve"
it'll do what you're after...?



--
Please click here to see the post in its original format:
  http://forums.perforce.com/index.php?/topic/5600-passing-description-into-p4-shelve-using-p4-perl-module
_______________________________________________
perforce-user mailing list  -  [email protected]
http://maillist.perforce.com/mailman/listinfo/perforce-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.