Remote diff from CLI
How would I perform a diff on two remote files (in particular from the CLI). Right now (4.0.6) it seems like the diff command for the CLI requires one of the files to be local. I would like to be able to do a diff when I have the UUID and stateID of both files.
I've attempted a work around of using the "scm get file" command to grab the file and put it in my %TEMP% directory. However, upon attempting to diff it against a stream it says that the file is not shared.
One answer
The diff command does not work with non-sandbox files. It can compare only files in the sandbox to a remote workspace or stream or snapshot or baseline or change set.
To compare two remote files, you have to compare two change sets but then it compares all the files in the change sets. There is a work item open to provide an additional option for specifying which file or files to a compare in a change set diff.