Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-03-2005, 11:28 AM
SpartanHokie SpartanHokie is online now
Registered User
 
Join Date: 07-28-2004
Posts: 19
Question Branching with SourceSafe

I want to branch a project in SourceSafe from within VBP. Are there examples of how to do this?
Reply With Quote
  #2  
Old 06-07-2005, 07:12 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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>
Reply With Quote
  #3  
Old 08-30-2006, 02:44 PM
Albert Albert is online now
Registered User
 
Join Date: 08-18-2006
Posts: 9
Share & Branch in a single step

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 02:23 PM.


Copyright © 1999-2023 Kinook Software, Inc.