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

In the shell, "-i" means to read the form from stdin, which is why you
have commands of the form "p4 client -o | p4 client -i" to create a
spec.  In the days before "--field" you could do stuff like:

p4 change -o | sed -e "s/<.*>/my description/" | p4 shelve -i   
which uses the same "-o | -i" paradigm but with regex-based
substitution.

In the various APIs, there's usually some replacement for stdin as a way to
feed data into a "-i" command, sometimes with the Spec::Format baked
in (I think the Python API makes this a little nicer than the Perl API does).



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