I'm using the API (3.5.2) to check stuff into Vault. I'm trying to use ChangesSetItem.Type to determine which items are Unmodified, so I can undo their check outs, rather than checking them in. The problem I'm having is, all items seem to have ChangeSetItemType.Unmodified, no matter whether they are modified, or not.
Here is what I'm doing
Code: Select all
m_VaultClient.Get(versionFolder, true, true, MakeWritableType.MakeAllFilesWritable,
SetFileTimeType.CheckIn, MergeType.OverwriteWorkingCopy, null);
m_VaultClient.CheckOut(versionFolder, true, VaultCheckOutType.Exclusive, "Build automation");
copyFilesBack();
m_VaultClient.Refresh();
foreach (ChangeSetItem csi in m_VaultClient.InternalChangeSet_GetItems(false))
{
if (csi.DisplayRepositoryPath.StartsWith(versionFolder.FullPath)
&& csi.Type != ChangeSetItemType.Unmodified)
{
csi.Comment = "Build automation";
updateFileChangeSets.Add(csi);
}
}
Is there anything I'm doing wrong?
Cheers,
Tilman