我在Linux機器上有p4客戶端工作區。如何執行p4提交操作而不通過p4提交表單中的描述
我在客戶端空間中添加/編輯了幾個文件,然後嘗試將這些更改提交給perforce服務器。
我做下面的步驟,但未能取得成功:
p4 submit -d "test"
(Windows機器上相同的命令作品)
當我剛p4 submit
試圖然後打開P4提交表單,然後我換成[進入這裏描述]令牌與正確的描述,然後它的作品。
但我不想爲每個p4提交任務編輯p4提交表單。
如何從命令提示符傳遞此信息?
Answer
-d flag support for p4 submit command was not introduced in
perforce 2006 version. so here is the workaround for this problem:
To modify the description field on pre-2006.2 release Perforce Servers, try
piping the change form in/out of a stream editor. This will create a numbered
changelist, which should then be submitted.
For example, something like:
p4 change -o | sed -e "s/<enter description here>/my desc/" | p4 change -i
Which gives the output, similar to:
Change 102 created with 3 open file(s).
This change (number 102 in this case) can then be submitted, as follows:
p4 submit -c 102
以何種方式失敗? – 2009-12-08 13:28:00
您應該將答案張貼爲答案 - 不要將其添加到問題中...... – 2009-12-10 13:10:43