की कि परिवर्तन सूची मान लेते हैं 123456 सवाल में ढाला परिवर्तक है। जैसा कि पिछले उत्तर का उल्लेख किया गया है, फाइलों को सूचीबद्ध करने का तरीका उस परिवर्तनीय से जुड़ा हुआ है p4 describe -s <changelist>
कमांड के माध्यम से है। इसलिए जैसा:
$ p4 describe -s 123456
Change 123456 by [email protected] on 2013/10/24 15:38:10 *pending*
[Shelving my changes for Jane.]
Fix memory corruption caused by uninitialized pointer.
Affected files ...
... //depot/branches/JohnsBranch/kernel/vm/pageutils.c#1 edit
एक बार जब आप प्रश्न में फ़ाइल (रों) पता है, वहाँ तरीके एक इसी कार्यक्षेत्र बिना फ़ाइलों को diff करने के एक जोड़े हैं। विधि # 1 p4 print
उपयोग करने के लिए है:
$ p4 print -q //depot/branches/JohnsBranch/kernel/vm/pageutils.c#1 > /tmp/old
$ p4 print -q //depot/branches/JohnsBranch/kernel/vm/[email protected]=123456 > /tmp/new
$ diff /tmp/old /tmp/new # Or use kdiff3, tkdiff, etc.
...
<diff output here>
अन्य विधि p4 diff2
उपयोग करने के लिए है:
$ p4 diff2 //depot/branches/JohnsBranch/kernel/vm/pageutils.c#1 //depot/branches/JohnsBranch/kernel/vm/[email protected]=123456
...
<diff output here based on Perforce server's diff algorithm>
दोनों ही तरीकों से आसानी से पसंद की पटकथा भाषा में शामिल किया जा सकता है।
धन्यवाद! और अगर मैं उन फ़ाइलों को डाउनलोड करना चाहता हूं (जो मेरे पी 4 वर्कस्पेस में बदलावों को ढंक चुके हैं, तो कमांड क्या होगा? – Mike
आप केवल – cristobalito
के लिए पी 4 वी का उपयोग कर सकते हैं उपयोगी उत्तर के लिए धन्यवाद। काफी परेशान है कि शेल्फ देखने के लिए एक नया तर्क आवश्यक है परिवर्तन। –