can't get full file path name in client api history request
Moderator: SourceGear
can't get full file path name in client api history request
Hello,
SourceGear Vault v2.0.6
I am using the client api to get a history of changes successfully except for one major issue: the full file/folder path of the file/folder that changed.
the VaultHistoryItem has several properties but none of which contain the full file path name. The VaultHistoryItem.Name property usually only contains the name of the file that changed.
How can I get the full file/folder path of the file/folder that changed using the client api?
Thank you.
-Rami
SourceGear Vault v2.0.6
I am using the client api to get a history of changes successfully except for one major issue: the full file/folder path of the file/folder that changed.
the VaultHistoryItem has several properties but none of which contain the full file path name. The VaultHistoryItem.Name property usually only contains the name of the file that changed.
How can I get the full file/folder path of the file/folder that changed using the client api?
Thank you.
-Rami
Sample source code that can be used to reproduce the issue can be found here:
Sample Command line history query
http://support.sourcegear.com/viewtopic.php?t=450
In order to make this work with Vault v2.0.6:
1. Fix Vault API dll paths
2. replace "VaultLib.VaultHistoryQueryRequest"
with "VaultClientNetLib.ClientService.VaultHistoryQueryRequest"
3. replace "VaultLib.VaultUser" with "VaultClientNetLib.ClientService.VaultUser"
4. replace "VaultLib.VaultHistoryItem" with "VaultClientNetLib.ClientService.VaultHistoryItem"
5. removed ResourceManager and rm.GetString code
Any ideas?
Thank you,
-Rami
Sample Command line history query
http://support.sourcegear.com/viewtopic.php?t=450
In order to make this work with Vault v2.0.6:
1. Fix Vault API dll paths
2. replace "VaultLib.VaultHistoryQueryRequest"
with "VaultClientNetLib.ClientService.VaultHistoryQueryRequest"
3. replace "VaultLib.VaultUser" with "VaultClientNetLib.ClientService.VaultUser"
4. replace "VaultLib.VaultHistoryItem" with "VaultClientNetLib.ClientService.VaultHistoryItem"
5. removed ResourceManager and rm.GetString code
Any ideas?
Thank you,
-Rami
Hi Jeff,
When I perform a recursive search in the entire repository:
VaultHistoryQueryRequest.Recursive = true
VaultHistoryQueryRequest.TopName = "$"
I am not able to get the full file/folder path of the VaultHistoryItems retrieved. The VaultHistoryItem.Name property only contains the file name and not the path in the repository.
What can I do?
Thank you,
-Rami
When I perform a recursive search in the entire repository:
VaultHistoryQueryRequest.Recursive = true
VaultHistoryQueryRequest.TopName = "$"
I am not able to get the full file/folder path of the VaultHistoryItems retrieved. The VaultHistoryItem.Name property only contains the file name and not the path in the repository.
What can I do?
Thank you,
-Rami
I have been brainstorming and the best option I have come up with is to recursively enumerate vault folders and perform a non-recursive history query on each folder.
I wonder how long it would take and how much stress it puts on the server.
Do I have a better option other than to upgrade to Vault v3?
Thank you.
I wonder how long it would take and how much stress it puts on the server.
Do I have a better option other than to upgrade to Vault v3?
Thank you.
Last edited by icnocop on Tue Oct 31, 2006 8:59 am, edited 1 time in total.