[p4] renaming files in perforce is ok
Jeff A. Bowles
jab at piccoloeng.com
Tue Jun 12 10:56:44 PDT 2001
At 10:25 AM 6/12/2001 -0700, Chuck Karish wrote:
>How would the user discover which files on one branch were equivalent
>to files with different names on another branch?
One trick I've done, which is admittedly CPU-intensive, is to
run "p4 verify" on the two areas and compare the MD5 checksums.
This will tell you which revisions of which files are PROBABLY
identical to other files, although you still need to actually compare
the file contents after comparing checksums. (If two revisions have
the same MD5 checksum - also called "digital signature" - then they
probably have the same contents. There's a 1 in something-giant
change that two unlike files will compute to the same MD5 result,
and that something-giant is really big. So you compare.)
-jab
More information about the perforce-user
mailing list