Notification in Vault

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

Moderator: SourceGear

Post Reply
btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Notification in Vault

Post by btd » Thu Jun 21, 2007 10:29 am

Some of my developer's are leaving work with files cheked out.
Is there a process inside Vault that I can schedule to check repositories and send an email? if not, can you assist in which objects I need to look at for custom coding?

Thanks

Tom

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

Post by Beth » Thu Jun 21, 2007 2:56 pm

Currently there isn't a way to force people to check in their code. If you would like I can enter a feature request for that.

If you can describe how you would like it to work in our new Development (API) forum, then one of the developers will look into assisting you with that.

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Notification in Vault

Post by btd » Fri Jun 22, 2007 6:25 am

No, I wish to know if there is an API call that I can use to call Vault and see what files are checked out?

I'll write the program and schedule it.

I'm just not sure what object to look at?

Thanks


Tom

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Fri Jun 22, 2007 9:40 am

Tom

You can use the command line client's listcheckouts command with:

Code: Select all

vault.exe -user USERNAME -password PASSWORD -host SERVER -repository "Repository Name" listcheckouts
That will generate XML for all checkouts in a repository.

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Notification in Vault

Post by btd » Fri Jun 22, 2007 9:55 am

Is there an object I can call from within C# using Visual Studio .net 2005?

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Fri Jun 22, 2007 10:02 am

Sure (assuming that you're using 4.0.1)

Look at the C# examples at: http://support.sourcegear.com/viewtopic.php?t=8020

After the call to ServerOperations.Login(), call ServerOperations.ProcessCommandListCheckOuts()

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Notification in Vault

Post by btd » Fri Jun 22, 2007 11:54 am

Thanks for your reply, but I am on 3.16 (3658 SG) version of Vault.

So are the objects different? If so, can you tell me which ones they are for my version of Vault?

Thanks

BTD

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Fri Jun 22, 2007 12:54 pm

Then you will need to start with the blog post:

http://weblogs.asp.net/jeremy_sheeley/a ... 75860.aspx


The object array you probably want is:

ClientInstance.TreeCache.CheckOuts

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Notification in Vault

Post by btd » Tue Jun 26, 2007 7:19 am

Many thanks for your assistance.

Tom

Post Reply