views:

1770

answers:

4

Is there a way I can ask Visual source safe to get all the files from a given date for a project? We don't use labels, so I can't roll back to a specific label and am hoping that I can somehow just call a certain date range to get the files as they existed on a specific date? Impossible?

+8  A: 

As far as I know you have to use the get command at a command prompt, not the gui. Something like this should do:

ss Get "$/AFolder" -R -Vd15-03-2009;2:00a

The -R option makes the get recursive and the -vd option gets the version at the specified date.

Martynnw
Be sure to use the date/time format as used in the VSS database
Lars Truijens
+1  A: 

Using the command line, use the get command with the -Vd parameter

ss get $/Project -R -GTU -Vd4/30/2009;3:00a

I'm not sure, but I don't think there is a way to do this with the ui.

crashmstr
You can use this format in the 'get' dialog box too. Enter "d15-03-2009" in the label field. It can be confusing though as you don't get an error message if the date format is wrong (it just doesn't update the files.)
finnw
I know you can use a date in the Show History dialog, but at least in VSS 2005, there is only a "Get Latest" that I can find, and it does not have any label field.
crashmstr
+2  A: 

Using SourceSafe: Get by Date

http://brennan.offwhite.net/mtblog/archives/000282.html

Robert Harvey
A: 

You can right-click the project, choose Show History and get the version of a given date from the history explorer.

Catherine
That only works if a change was made on the particular date and time that you are interested in. If you want to grab a snapshot from between checkins, you have to use the command-line.
bta
Thanks for the info.
Catherine