I've tried and tried, using the examples and solutions to this problem in other topics, but cannot get the API to check in a modified file. This is what I am currently trying which is almost directly from an example on finding files, checking them out, modifying them, and checking them back in: http://weblogs.asp.net/jeremy_sheeley/a ... 97021.aspx
Here is what I'm doing in C#:
Code: Select all
vaultClientInstance.CheckOut(vclientfile, VaultCheckOutType.Exclusive,"no comment");
vaultClientInstance.Get(vclientfile, true, MakeWritableType.MakeAllFilesWritable, SetFileTimeType.Current, MergeType.OverwriteWorkingCopy, null);
// Modify the file
vaultClientInstance.Commit();
I have also tried to specifically create a ChangeSetItemColl object and put into it ChangeSetItem_Modified objects and then call the Commit() method on this:
Code: Select all
myCheckinChangeSetCollection.Add(new ChangeSetItem_Modified(new VaultDateTime(DateTime.Now.Ticks),
"Automatically checked in",
"",
vclientFile.ID,
vclientFile.ObjVerID,
workingFolderPath,
vclientFile.FullName,
true,
(int)VaultEOL.None));
vaultClientInstance.Commit(myCheckinChangeSetCollection, false, false);
I'm using :
Vault client version 4.1.3.18336
Vault server version 4.1.3.18336
Thanks in advance.
-Nick