How to retrieve the last checked in file revision number?

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

Moderator: SourceGear

Post Reply
eosmann
Posts: 5
Joined: Mon Dec 08, 2008 9:58 am

How to retrieve the last checked in file revision number?

Post by eosmann » Mon Mar 23, 2009 9:24 am

I need to know how to retrieve the latest file revision checked into vault given either the repository or local path to a file.
Unfortunately the VaultClientIntegrationLib.ServerOperations.ProcessCommandCheckout() call doesn't return this information and I can not find any calls that address this.

Please help direct me to the appropriate method in the VaultClientIntegrationLib source API if such a call exists or provide a means for me to obtain this information as needed.

Thanks
Eric

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

Re: How to retrieve the last checked in file revision number?

Post by jeremy_sg » Mon Mar 23, 2009 10:30 am

Look at RepositoryUtil.FindVaultFileAtReposOrLocalPath, which will return a VaultClientFile. That file's .Version property will be the latest version in the repository.
Subscribe to the Fortress/Vault blog

Post Reply