Vault Client API - Requesting history for a folder

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

Moderator: SourceGear

Post Reply
Jim Cline

Vault Client API - Requesting history for a folder

Post by Jim Cline » Wed Feb 11, 2004 10:47 am

I need to request history for a project folder and get the most recent change to occur in that folder for any given item in it. How would I go about setting up the VaultHistoryQueryRequest to achieve this?

Thanks,
Jim

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

Post by dan » Thu Feb 12, 2004 10:11 am

Attached is a sample test file that was used in conjunction with an nunit framwork test suite. It contains some code to create some history and then fetch it and verify the results are what was expected.

Look at the VaultHistoryQueryRequest function for an example on how to create a history request. You might be able to run this if you strip out the nunit specifc stuff, but even so the code samples should help see how to set this stuff up.

Good luck!
Attachments
Sample_Tests_History.txt
Sample History Code
(16.56 KiB) Downloaded 1201 times

Jim Cline

Thanks!

Post by Jim Cline » Fri Feb 13, 2004 2:24 pm

Now my code works perfectly! It was the sort array for the query that I couldn't figure out.

-Jim

Post Reply