[p4] Folder Diff from command line

Hugues Moreau hugues.moreau at cggveritas.com
Fri Oct 17 08:50:03 PDT 2008


Hi,

Using p4v's "Diff against..." feature, you can get a folder diff between 
the user's workspace files and the corresponding tree on the depot 
(among other options not relevant here). Nice. I would like to get this 
from the command line, but can't find how. Is it only possible ?

I tried "p4v -merge", with no success. Apparently it accepts only local 
files, no folders. So in the end I'm not sure it is a good candidate.

Any idea ?
Bonus points if you know how to automatically expand all nodes in the 
"Folder Diff" view (I fail to see why I have to manually expand each 
node: the full tree is already processed anyway).

Btw, I need this because I work under the Eclipse IDE, and I would like 
to directly use some perforce tools directly from Eclipse. I already 
managed to get the time lapse view,  graph revision and file history, 
the dirty hack part being "how to get the appropriate port/client/user 
from the current selection in eclipse" (anyone interested just ask). Now 
I need this Folder Diff against the depot ; it would more or less 
compensate for the lacking "Team Synchronize" features, provided you 
hide identical file pairs.

Thanks for any input or directions (and sorry if it has already been 
discussed, I was surprised to find nothing...)

Hugues




More information about the perforce-user mailing list