13

If I have Branch A and Branch B. Branch B was branched from Branch A. Periodically, we integrate changes from Branch B back into Branch A. Is there a p4 command for listing the Branch B changelists that have not yet been integrated into Branch A? I can think of some reasons that this may not be possible given that a changelist's files is not necessarily limited to a single branch, but I'm hoping for the best here.

I have found this question: Is it possible to list the changelists that have been integrated to a workspace?

... which is the opposite of what, I want but makes it clear that there are ways to do this using multiple commands. I can think of a couple of ways to use multiple commands to get what I want, but before I go down that road I'd like to make sure there's no simple way to do this.

4

2 に答える 2

19

'interchanges'コマンドを使用します。現在サポートされていません(リリース10.2以降)が、「p4ヘルプインターチェンジ」を使用すると、ツールのコマンドラインを使用できます(現在、コマンドラインでのみ使用できます)。このコマンドが導入されたバージョンを具体的に思い出せません。

p4 interchanges -b mybranch

ブランチ仕様で定義されている統合されていない変更について報告します。ブランチマッピングを逆にするには、「p4integ」の場合と同じように「-r」を使用します。ブランチスペックがない場合は、コマンドラインでFilespecsを指定することもできます。

p4 interchanges //depot/main/... //depot/RelA/...

mainからRelAへの統合されていない変更について報告します

文書化されていない/サポートされていない機能と同様に、出力には注意する必要があります。不正確な情報が返される原因となる状況がいくつかあるかもしれません。ただし、このコマンドでの私の経験は素晴らしいものでした。このコマンドは、LauraWingerdの著書「PracticalPerforce」で簡単に説明されています。私のポイントは、このコマンドがすぐに一般的なヘルプに入る可能性が高いということです。

お役に立てれば。

于 2011-05-20T17:16:09.647 に答える
0

以下のような交換コマンドの表示結果

#Person@#Workspace #Description で #Date の #Changelist 番号を変更します。

さらに処理するために選択的な列を表示する必要がある場合 (レポートの生成)。Linux / Unixボックスで以下のようなことを試すことができます.

p4 interchanges //depot/branch1/... //depot/branch2/... | awk '{print $2"|"$4"|"$6"|"substr($0,index($0,$7)) }' 
于 2015-03-31T07:54:19.277 に答える