Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3960540
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:51:58+00:00 2026-05-20T02:51:58+00:00

Consider the following situation: Development is mainly done in trunk. Branches are used when

  • 0

Consider the following situation:

  • Development is mainly done in trunk.
  • Branches are used when fixing complex bugs or developing new (unstable at first) features.
    Normally these branches are then merged into trunk once development is done.
  • 1 branch is used as current release branch (say currently “R-1.0”).
  • Tags are used for the release (would be “R-1.0.0”).

Now a complex bug which is in trunk as well as in the current release 1.0.0 must be fixed:

  1. A branch “BG-1” from trunk will be created.
  2. The bug will be fixed in this branch.
    At the same time development will continue in the trunk.

How do you proceed to reintegrate the branch into trunk and “R-1.0” now?

  • Merge trunk into “BG1”, then reintegrate “BG1” into trunk and then into “R-1.0”.
    =>This cannot be the solution as this way “R-1.0” would receive all the stuff that was developed in the trunk since release 1.0 which is not the goal.
  • Try to reintegrate “BG1” into trunk and then into “R-1.0” without merging the trunk.
    =>This also cannot work as other changes which weren’t part of release 1.0 are already part of the “BG1” branch.

Is there any solution to this problem?
The only solution I see would be to start “BG1” from “R-1.0” rather than trunk in the first place. If so, does this mean that for each bug fix branch the developer has to find the oldest supported release which contains the bug and branch from this release branch?

Update:
The practice of doing all development in and from trunk originated from this answer by “Jim T” which is a concept I really like.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T02:51:59+00:00Added an answer on May 20, 2026 at 2:51 am

    I would suggest merging the trunk into BG1, then reintegrating BG1 to the trunk. You could then merge a range of revisions to R-1.0. The commit where you reintegrate BG1 to the trunk should only contain the bugfixes, so you could merge that to R-1.0. Or you could merge the specific commits to BG1 that fixed your bug.

    Depending on how much the trunk has changed since R-1.0, you may have to hand edit R-1.0 before committing to make the changes apply to the old code. Such is the nature of maintaining old releases.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider the following situation: Class** array = new Class*[8]; array[1] = new Class(1,2); Is
Consider the following situation where I have a list of n matrices (this is
Consider the following situation. -(void) foo { Object * obj = [[Object alloc] init];
Consider the following situation. I have 3 tables in a resource planning project(created using
Consider the following query: SELECT domain, done FROM tasks WHERE 1 GROUP BY domain
Please pardon me for a n00bish question. Please consider the following code: public class
I support SQL Servers 2000 thru 2008R2 (all Standard Edition). Question 1 Please consider
I have lately read several articles and questions about Model Binding and Validation in
I'm building a home rental system. The system stores profiles of homes and users

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.