In the Vault 4.0.5 C# API, I am trying to insert a comment while checking in a file.
From what I can tell, there is no option to do so in ServerOperations.ProcessCommandCheckIn()
Is there a way to fulfill what I'm trying? Perhaps there is a workaround? Or is this currently unsupported?
Thank you.
Comments
Moderator: SourceGear
Thank you for the help Jeff,
It works as expected, now. I replaced
with
It works as expected, now. I replaced
Code: Select all
ServerOperations.ProcessCommandCheckIn(new string[] { svFilepath }, UnchangedHandler.Checkin, false, LocalCopyType.Leave);
Code: Select all
ServerOperations.ProcessCommandListChangeSet(new string[] { svFilepath });
ServerOperations.client.ClientInstance.InternalChangeSet_SetComment("Comment");
ServerOperations.client.ClientInstance.Commit();
Ah, I was going off of your original response... which must have been replaced with what is now there about the comment.
Thank you for the follow up.
Thank you for the follow up.
Code: Select all
ServerOperations.client.Comment = "Restored from previously deployed version " + svVersion + ".";
ServerOperations.ProcessCommandCheckIn(new string[] { svFilepath }, UnchangedHandler.Checkin, false, LocalCopyType.Leave);