Client API question-- get file by version?

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

Moderator: SourceGear

Post Reply
Xomen
Posts: 6
Joined: Mon Nov 20, 2006 6:06 pm

Client API question-- get file by version?

Post by Xomen » Wed Nov 22, 2006 2:15 pm

I've been looking at the client API, which is surprisingly easy to use (especially after using VSS's ActiveX control). But I can't find a way to get a file by version number. I'd like to iterate over checkins of a file, select one and run my own diff between versions.

It looks like getting things by label is simple enough, or getting the head. Clearly you have to get other versions to do the diff operation in the GUI. What's the secret?

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Wed Nov 22, 2006 2:55 pm

If you take a look at the command line client code, the GETVERSION uses Client Instance's GetByDisplayVersion...() methods.

See if those will help you out.
Jeff Clausius
SourceGear

Post Reply