Is it possible to programmatically check files in and out?

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

Moderator: SourceGear

Post Reply
Don57
Posts: 8
Joined: Fri May 30, 2008 1:56 pm

Is it possible to programmatically check files in and out?

Post by Don57 » Fri May 30, 2008 2:01 pm

I'm looking at creating a project-specific search-and-replace utility that is meant to alter the contents of code files that are managed by Sourcegear Vault. Is it possible to programatically (either via some sort of SDK or command line calls) check files in and out of the Vault?

Something like this pseudocode:

Code: Select all

Sub ChangeVaultFile(file, username, password)

    CheckOut(file, username, password)
    ...
    <modify file>
    ...
    CheckIn(file, username, password)

End Sub

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Fri May 30, 2008 2:04 pm

We have a command line client you could use or you could access the API.

Command Line Client Documentation
API Examples
API Question/Discussion Area

Post Reply