Discussion:
[p4] question about p4 change -i
Michael Mirman
2016-12-13 12:20:07 UTC
Permalink
Global option --field??
Is it documented anywhere?
--
Michael Mirman
MathWorks, Inc.
508-647-7555

-----Original Message-----
From: perforce-user [mailto:perforce-user-***@perforce.com] On Behalf Of Sambwise
Sent: Monday, December 12, 2016 11:40 PM
To: perforce-***@perforce.com
Subject: [p4] question about p4 change -i

Posted on behalf of forum user 'Sambwise'.

For what you describe ("create changelist and submit"), just use
"p4 submit -d MYDESCRIPTION".��The submit command will
create a changelist for you automatically and submit it.

But to answer the general question of how to create a changelist with a
particular description, do:

p4 --field "Description=MYDESCRIPTION" change -o | p4 change -i
--
Please click here to see the post in its original format:
http://forums.perforce.com/index.php?/topic/5082-question-about-p4-change-i
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/
Chuck Pflaum
2016-12-13 13:57:11 UTC
Permalink
Hello Michael,
It is documented in ‘p4 help undoc’.

p4 --field Field=replacement_text
p4 --field Field+=extra_text
Modify the contents of a spec returned by p4 [specname] -o. The
modified spec can be piped directly to another command that expects
a formatted spec, e.g. p4 [specname] -i.

Regards,
Chuck Pflaum

On 12/13/16, 4:20 AM, "perforce-user on behalf of Michael Mirman" <perforce-user-***@perforce.com on behalf of ***@mathworks.com> wrote:

Global option --field??
Is it documented anywhere?

--
Michael Mirman
MathWorks, Inc.
508-647-7555

-----Original Message-----
From: perforce-user [mailto:perforce-user-***@perforce.com] On Behalf Of Sambwise
Sent: Monday, December 12, 2016 11:40 PM
To: perforce-***@perforce.com
Subject: [p4] question about p4 change -i

Posted on behalf of forum user 'Sambwise'.

For what you describe ("create changelist and submit"), just use
"p4 submit -d MYDESCRIPTION".��The submit command will
create a changelist for you automatically and submit it.

But to answer the general question of how to create a changelist with a
particular description, do:

p4 --field "Description=MYDESCRIPTION" change -o | p4 change -i



--
Please click here to see the post in its original format:
http://forums.perforce.com/index.php?/topic/5082-question-about-p4-change-i
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user


_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/m

Loading...