PDA

View Full Version : SourceSafe Get/Label/Checkout only workspace related files


Peter
01-04-2004, 12:31 PM
Hi,
We have number of VC6 and VB projects in one SourceSafe branch. When I have to get single workspace I open VC and run "Open Workspace", then press "Source Control" button, and voila! only the workspace related files are copied to my local disk.
Getting the whole branch from the SourceSafe is unacceptable option, since it's too large.
Meanwhile I have to get the .dsw file, parse it for the set of .dsp files, and then parse each one of them to get the needed sources -- too cumbersome way for the automatic building tool.

kinook
01-04-2004, 02:53 PM
In the 'Projects and/or files to process' field of the SourceSafe action, you could specify the sub-project of the entire branch that includes only the source files for that workspace.

Peter
01-05-2004, 02:39 AM
The problem is that the structure of the SourceSafe tree doesn't reflect the structure of the Visual Studio projects -- there are common header files, some sources are cross referenced between different workspaces etc.
On the other hand we can't afford getting the whole SourceSafe branch in order to compile only 10% of the source files.

kinook
01-05-2004, 11:38 AM
If the necessary source files are limited to a small number of project trees, you could add a get step for each of those.

It's surprising that getting all the source code takes so long. Are you connecting to the database over a WAN or dial-up? If not, you may want to see if you can speed up your gets (archiving old history and ensuring you are not using the Contents file comparison method, for starters, or consider moving the database to a faster server or network pipe or migrating to a faster source control system).

There's nothing built into VBP to get just the files referenced in a workspace. Instead of the SourceSafe step, you may be able to create a Run Program step that invokes %DEVENV_NET% and invokes a command which executes a macro to open the solution, get latest, and exit the IDE (we don't use the VSS IDE integration so can't offer much help on this). Some links that may help:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxgrfCommandLineSwitches.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxoriautomatingrepetitiveactions.asp

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=memo.20020131003142.1696B%40martynl.seanet .com&rnum=2&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26q%3Ddevenv%2Bmacro%2Bget%2Bvss%26sa%3DN%26tab% 3Dwg