How to get folder history by version from CLI?

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

Moderator: SourceGear

Post Reply
slava
Posts: 5
Joined: Fri Dec 02, 2005 1:28 am

How to get folder history by version from CLI?

Post by slava » Fri Dec 02, 2005 1:42 am

Hello All,

Current vault.exe HISTORY lists folder history by item. Is it possible to to get folder history by version from the command line (same way it is done in the GUI client)? I tried to search the forum but couldn't find the answer. I have a feeling the I am missing something obvious.

Thanks.

Slava

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Fri Dec 02, 2005 8:18 am

Try the GETVERSION command (Vault 3.1.x). This will retrieve a file or folder at a specific version.

Usage: vault.exe GETVERSION [options] version repositorypath localfolder
Linda Bauer
SourceGear
Technical Support Manager

slava
Posts: 5
Joined: Fri Dec 02, 2005 1:28 am

Post by slava » Fri Dec 02, 2005 11:25 am

Linda,

Thanks for the propmt reply!

May be I wasn't clear, but my question was about this - how can I get a version report on the folder that includes folder's version numbers that I can later use in vault GETVERSION command?

Looking forward to hearing from you.

Slava

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Fri Dec 02, 2005 2:35 pm

Slava,

Unfortunately the command-line client doesn't provide this functionality right now. I can't promise the details because I don't know them yet, but we are making some history-related enhancements to the command-line client to integrate better with CruiseControl.NET. It's possible that history by version will be among them.
Ian Olsen
SourceGear

slava
Posts: 5
Joined: Fri Dec 02, 2005 1:28 am

Post by slava » Fri Dec 02, 2005 2:52 pm

Ian,

This is a critical issue for us. Is there a code snippet or a beta/alpha of the client that we could use to get this information out of Vault?

Thanks.

Slava

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Fri Dec 02, 2005 3:03 pm

I'm afraid not, I just brought up the possibility of doing this yesterday. No code has yet been written to actually make it happen. If you email me (using the button below) I can update you directly as we get a more definitive idea when this will be ready. We've already made the source for the command-line client available, so I can certainly send you a pre-release version if you're up for it.
Ian Olsen
SourceGear

slava
Posts: 5
Joined: Fri Dec 02, 2005 1:28 am

Post by slava » Wed Dec 07, 2005 6:02 pm

May be it will help if I rearrange the request - given the txid obtained from from vault.exe HISTORY, we would like to be able to get a [directory] content from Vault at this txid. Smth. like

vault.exe GETTX <options> <txid> <repository path> <working dir>


Slava

Post Reply