Changing a past revision's comment

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
andrews
Posts: 55
Joined: Tue Feb 05, 2008 7:40 pm

Changing a past revision's comment

Post by andrews » Mon Feb 18, 2008 5:42 pm

As part of integrating Vault with our in-house bugtracking tool, we need to be able to change comments for past revisions on a per-file basis using the command line (basically appending the bugtracking item's ID to the comment).

I've been unable to find out how to do this with vault.exe. Is it possible to do this, or is it something we'll have to make a custom version of vault.exe to achieve? If the latter, does the API have the necessary functionality?

cheers
Andrew

shannon

Post by shannon » Tue Feb 19, 2008 3:33 pm

From the api you can use ServerOperations.ProcessCommandUpdateTxComment to do this. You'll have to pass it the transaction id, the object version id of the file/folder you want to update the comment for, and the new comment.

andrews
Posts: 55
Joined: Tue Feb 05, 2008 7:40 pm

Post by andrews » Tue Feb 19, 2008 3:59 pm

Wonderful, thanks Shannon!

Post Reply