Adding comments when performing operations using Vault API

Post your questions regarding using the Vault and Fortress API in your programs.

Moderator: SourceGear

Post Reply
fryhard
Posts: 6
Joined: Wed May 27, 2009 7:12 am

Adding comments when performing operations using Vault API

Post by fryhard » Tue Jun 09, 2009 3:30 am

Hey,

We are using the Vault API to automate check in and check out procedures. Everything is currently working find with the application being able to check out, check in, add and update items. The problem that I am faced with is that we would like to add a comment when a task is performed. This would allow us to track operations performed by the application.

Currently I am using code like this to add file to the repository.

Code: Select all

ServerOperations.ProcessCommandAdd(directoryName, fileNames)
Is it possible to add a comment when doing the Add or Checkin.

Thanks

shannon

Re: Adding comments when performing operations using Vault API

Post by shannon » Tue Jun 09, 2009 7:29 am

Before you call ProcessCommandAdd or ProcessCommandCheckin, set the ServerOperations.client.Comment field. You'll want to set it to empty string after your call.

Post Reply