View Full Version : Branching with SourceSafe
SpartanHokie
06-03-2005, 11:28 AM
I want to branch a project in SourceSafe from within VBP. Are there examples of how to do this?
kinook
06-07-2005, 07:12 AM
SourceSafe doesn't support branching of projects, only files. Branching a file would work like this (tested by adding to the SourceSafe.bld sample, copy and paste the text below into VBP):
<step action='SourceSafe' type='0'>
<AutoLocate type='11'>-1</AutoLocate>
<Comments>Branch test</Comments>
<CompareOpt type='3'>2</CompareOpt>
<Database>%SAMPLEDB%</Database>
<LongFilenames type='11'>-1</LongFilenames>
<Operation>Branch</Operation>
<Project>$/Source/FirstVB/First.frm</Project>
<PromptOff type='11'>0</PromptOff>
<Recurse type='11'>0</Recurse>
<ShowFilesOnly type='11'>0</ShowFilesOnly>
<TimeOpt type='3'>1</TimeOpt>
<Username>%SSUSER%</Username>
<WriteOpt type='3'>1</WriteOpt>
<description>Branch Test</description>
<indent type='3'>1</indent>
<name>Branch</name>
<outputfrom type='3'>1</outputfrom>
</step>
Albert
08-30-2006, 02:44 PM
I was able to Share and Branch an entire project recursively. Try this:
1st. Use the CP step to set the current VSS project to the one you are branching to / sharing with. For example $/Build History/v 1.0.0.0
2nd. Create a SHARE step and set this to the project that contains the source code. For example $/Source. Also, on the options tab enter -R -E in the text box for additional command line arguments.
The -R command line argument tells VSS to act recursively on the project and the -E argument tells it to branch after sharing. You can't branch a project in Source Safe unless you first Share it.
That's it. I was able to Share and Branch in one step. It works very nicely. Let me know if you have any trouble using this method.
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.