How do I set this using the API so that my API app does not check in files
with unmodified contents ?
I am using ServerOperations.ProcessCommandCheckIn and Checkout, and it appears that WFO are a property of the client instance... Am I missing something about how these two are related...?
Cheers
Matt
DetectModifiedFilesWithCRCs
Moderator: SourceGear
-
- Posts: 24
- Joined: Tue Feb 12, 2008 8:07 am
Am already doing that
Due to the way this system works, it is actually re-writing the file in question with an exact copy of itself. So the contents have not changed but the file date has.
With the CRC option set in the Vault client, a checkin of this file results in an UndoCheckout as expected - I need to duplicate this behaviour using the API.
I have created a new
with the true option set to use CRC checks, and am passing this as follows before both the CheckIn and Checkout operations.
but am still getting a checkin rather than an UndoCheckout.
Thanks
Matt
Due to the way this system works, it is actually re-writing the file in question with an exact copy of itself. So the contents have not changed but the file date has.
With the CRC option set in the Vault client, a checkin of this file results in an UndoCheckout as expected - I need to duplicate this behaviour using the API.
I have created a new
Code: Select all
_wfo = new WorkingFolderOptions(true, LocalCopyType.Replace, MakeWritableType.MakeAllFilesReadOnly, false, false, 0, true, 10);
Code: Select all
ServerOperations.client.ClientInstance.WorkingFolderOptions = _wfo;
Thanks
Matt
-
- Posts: 24
- Joined: Tue Feb 12, 2008 8:07 am
Got It.
before checkout and checkin seems to do the trick.
Code: Select all
ServerOperations.client.ClientInstance.WorkingFolderOptions.DetectModifiedFilesWithCRCs = true;