Page 1 of 1

How to diff two specific versions of a file...

Posted: Fri Jun 05, 2009 8:53 am
by eosmann
I am using ProcessCommandDiff() and can not difference two versions of a file?

For instance how can I diff version 10 and 11 of a file that is currently at version 15?
I am able to diff a version only to the latest version, or a working version, or the latest repository version but not to a specific version either in the repository or retrieved to a temp location. What am I missing.

Thanks
Eric

Re: How to diff two specific versions of a file...

Posted: Fri Jun 05, 2009 9:11 am
by shannon
That method is going to diff whatever version you currently have on disk against some item, that item being determined based on your CompareToOption choice.

To diff against something retrieved to a temp location, set the option to CompareToOption.local, and pass the temp location as the objectPathRight.

To use this to compare versions 10 and 11, you need to do a historical get of one of those items to your working folder and the other to a temp location and then pass CompareToOption.local and the temp location as objectPathRight.