Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Determining the last changelist synced to in Perforce

rajeshkumar created the topic: Determining the last changelist synced to in Perforce
7 down vote accepted

The simple answer is:

p4 changes -l “…#>have”

You need the quotes to avoid your shell doing redirection.

You can trivially iterate over the changes and call “p4 describe” on each one.

You can get a full diff by using “p4 diff2” (assuming you want a unidiff):

p4 diff2 -du …#have …#head

But that doesn’t give you a per-changelist diff.

stackoverflow.com/questions/4139076/how-…c-directory-by-non-l

stackoverflow.com/questions/47007/determ…ynced-to-in-perforce

answers.perforce.com/articles/KB_Article…elist-of-a-Workspace
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x