2 messages in com.perforce.perforce-user[p4] Question about ClientUser::Diff
FromSent OnAttachments
Ivaylo Beltchev18 Jan 2005 00:16 
Robert Cowham18 Jan 2005 15:23 
Subject:[p4] Question about ClientUser::Diff
From:Ivaylo Beltchev (iv@adelphia.net)
Date:01/18/2005 12:16:22 AM
List:com.perforce.perforce-user

Hi

I am calling the "diff -f" command with a ClientUser object of my own. My
experiment shows that ClientUser::Diff is not called if the files are identical
(no matter if the files are text or binary). Can anyone confirm or deny this?

I also found that the default implementation of ClientUser::Diff in the
clientuser.cc file. It starts with: if( !f1->IsTextual() || !f2->IsTextual() ) { if( f1->Compare( f2, e ) ) printf( "(... files differ ...)\n" ); return; }

Isn't the call to Compare redundant if the files are already compared to be
different?

Thanks Ivo