Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] Third Party Tools

Thread Tools Rate Thread Display Modes
Old 06-03-2005, 12:28 PM
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
Old 06-07-2005, 08:12 AM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,849
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>
<LongFilenames type='11'>-1</LongFilenames>
<PromptOff type='11'>0</PromptOff>
<Recurse type='11'>0</Recurse>
<ShowFilesOnly type='11'>0</ShowFilesOnly>
<TimeOpt type='3'>1</TimeOpt>
<WriteOpt type='3'>1</WriteOpt>
<description>Branch Test</description>
<indent type='3'>1</indent>
<outputfrom type='3'>1</outputfrom>
Reply With Quote
Old 08-30-2006, 03: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

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

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 08:28 PM.

Copyright 1999-2022 Kinook Software, Inc.