VaultRepositoryInfo members don't return data.

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

Moderator: SourceGear

Post Reply
Balthazor
Posts: 81
Joined: Fri Mar 11, 2005 4:10 pm
Location: Hartford, Wisconsin

VaultRepositoryInfo members don't return data.

Post by Balthazor » Mon Dec 15, 2008 10:32 pm

I'm noticing that the VaultRepositoryInfo.DeletedFileCount, VaultRepositoryInfo.DeletedFolderCount, VaultRepositoryInfo.DbSize and VaultRepositoryInfo.TreeSize seem to always be 0. The FolderCount and FileCount appear to work just fine. Is there something I need to do to get these to return data, or do they just not do anything? This is with the Vault 4.1.3 API.

shannon

Re: VaultRepositoryInfo members don't return data.

Post by shannon » Wed Dec 17, 2008 8:49 am

How are you getting the VaultRepositoryInfo?

Balthazor
Posts: 81
Joined: Fri Mar 11, 2005 4:10 pm
Location: Hartford, Wisconsin

Re: VaultRepositoryInfo members don't return data.

Post by Balthazor » Thu Dec 18, 2008 11:03 am

This is the code I'm using:

VaultRepositoryInfo[] reps = null;
client.ListRepositories(ref reps);
foreach (VaultRepositoryInfo r in reps)
{
Repositories.Add(r.RepName, r);
}

Later on I'm getting info from the VaultRepositoryInfo objects that I've loaded into the SortedList Repositories.

shannon

Re: VaultRepositoryInfo members don't return data.

Post by shannon » Thu Dec 18, 2008 1:49 pm

That call just doesn't fill in those values. (Filling in those values is expensive in terms of server effort and time.) We don't have a method in VaultClientIntegrationLib that would get them for you.

Post Reply