Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Verify Perforce client file copies

Tags:

perforce

I have a large Perforce depot and I believe my client currently has about 2GB of files that are in sync with the server, but what's the best way to verify my files are complete, in-sync, and up to date to a given change level (which is perhaps higher then a handful of files on the client currently)?

I see the p4 verify command, and it's MD5s, but these just seem to be from the server's various revisions for the file. Is there a way to compare the MD5 on the server with the MD5 of the revision required on my client?

I am basically trying to minimize bandwidth and time consumed to achieve a complete verification. I don't want to have to sync -f to a specific revision number. I'd just like a list of any files that are inconsistent with the change level I am attempting to attain. Then I can programmatically force a sync of those few files.

like image 487
mark pottorff Avatar asked Aug 20 '11 05:08

mark pottorff


1 Answers

You want "p4 diff -se".

This should do an md5 hash of the client's file and compare it to the stored hash on the server.

like image 58
XPav Avatar answered Dec 30 '22 16:12

XPav