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'.

FetchChange gets the changelist spec in its dictionary form (this is similar to
"p4 -Ztag change -o").

With the spec in a dictionary form it's easy to modify a particular field --
if it were in the formatted (plaintext) form you could still do it, but
you'd have to do some careful regexing.

The FormatChange converts it from the dictionary into the plaintext form that
the server expects (it's the same as what you'd enter in a text editor
if you were running a normal "p4 change" command).  If you
dump out the $form variable at this point you'll see that it's the
same as what you'd get from "p4 --field Description=blah change
-o".

Then, like you said, SetInput puts it into a buffer that takes the place of
stdin at the command prompt.



--
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.