验证 Perforce 客户端文件副本 [英] Verify Perforce client file copies
问题描述
我有一个很大的 Perforce depot,我相信我的客户端目前有大约 2GB 的文件与服务器同步,但是验证我的文件是否完整、同步和最新的最佳方法是什么?给定更改级别(可能高于当前客户端上的少数文件)?
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)?
我看到 p4 verify 命令,它是 MD5,但这些似乎只是来自服务器对文件的各种修订.有没有办法将服务器上的 MD5 与我的客户端所需的修订版的 MD5 进行比较?
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?
我基本上是在尽量减少带宽和时间,以实现完整的验证.我不想 sync -f
到特定的修订号.我只想列出与我试图达到的更改级别不一致的所有文件.然后我可以以编程方式强制同步这几个文件.
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.
推荐答案
您需要p4 diff -se".
You want "p4 diff -se".
这应该对客户端文件进行 md5 散列,并将其与服务器上存储的散列进行比较.
This should do an md5 hash of the client's file and compare it to the stored hash on the server.
这篇关于验证 Perforce 客户端文件副本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!