Get Files by date

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

Moderator: SourceGear

Post Reply
Bart De Boeck

Get Files by date

Post by Bart De Boeck » Tue Oct 04, 2005 6:39 pm

Hi,

Is it possible to retrieve the version of files as those files existed on a certain date ?
For instance, given a file which has three versions : 01/01/2005, 01/02/2005 and 01/03/2005. Is it possible to retrieve the version from 01/02/2005 by requesting this file version as it existed before 15/02/2005 ?

Thanks,
Bart

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

Post by dan » Wed Oct 05, 2005 8:05 am

Yes, in the file history, use the Get command to get the file at the version it is currently selected in the dialog. This also works for folders, so you can retrieve all the files in a folder at a given version (date) as well.

Bart De Boeck

Get Files by date

Post by Bart De Boeck » Wed Oct 05, 2005 8:18 am

Thanks for the tip !
In the case of folders, which call(s) in the client API should I use to have the same functionality ?
If a file in a folder is updated, is the version of this folder incremented ?

Thanks,
Bart
dan wrote:Yes, in the file history, use the Get command to get the file at the version it is currently selected in the dialog. This also works for folders, so you can retrieve all the files in a folder at a given version (date) as well.

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

Post by dan » Wed Oct 05, 2005 8:49 am

Yes, when a file is updated, the version number of both the file and its parent is incremented.

Check out the command line client source for examples on how to get files.

Post Reply