Vault API for checking in files via a program

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
Tri
Posts: 288
Joined: Wed Dec 22, 2004 11:10 am

Vault API for checking in files via a program

Post by Tri » Thu Jan 27, 2005 12:26 pm

We have a set of about 100 simple files. A few of them change from times to time. It is not possible to predict which file will change and when. We would like to create a program that watch once a day for file change and check them in Vault automatically.

Is there any API or tool to allow a .NET program to interact with Vault server or client?

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Thu Jan 27, 2005 12:43 pm

You could probably use the Vault command line client for this. Set up a different user, and make sure they use CVS style development, so that you don't have to checkout a file before checking in. Then, you could just set up something to checkin files from that folder everyday, and it should pick up the ones that have been modified.

Alternatively, you could checkout the whole folder, choosing not to overwrite the local files, then check them in, and set the option to undo the checkout for unchanged fiiles (which is on by default), and you would get the same behavior.

If this doesn't work for you, you'd need to dig into the Vault client API, starting with the CLC source, which is available from the Vault download page on our website.

Good Luck,

Tri
Posts: 288
Joined: Wed Dec 22, 2004 11:10 am

Post by Tri » Thu Jan 27, 2005 1:33 pm

Vault command line client should fulfill our needs. Thanks for your help.

Locked