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 6232977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:12:53+00:00 2026-05-24T10:12:53+00:00

I have previously only had simple scenarios where I have branched from trunk, made

  • 0

I have previously only had simple scenarios where I have branched from trunk, made some changes and then merged the changes into trunk. But this time it has gotten somewhat more complicated as the branch has had to merge in new stuff from trunk along the way, and now I do not know from which revision I am supposed to start the merge from branch to trunk. See picture below.

Merging from trunk to branch and then later back in trunk

The picture is supposed to depict a scenerio where mybranch is created in revision 10. A lot of changes are made, and then in revision 25 I merged some new features from the trunk into mybranch in order to create some new stuff. Ditto in revision 30. Further changes were made and I then tried to merge, but got a lot of conflicts, and for some reason I thought it might be easier to merge the new stuff from trunk into mybranch before trying to merge the changes in mybranch back into trunk again. But this is where I am lost – what revision should I specify as the starting point for the merge?

If I had not included any changes from the trunk it would have been easy:

svn merge -r11:HEAD http://repos.com/mybranch .

But now (in revision 35), mybranch basically has every new change in /trunk in addition to all the other changes. What should I do to merge the two into /trunk?

  • 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-24T10:12:54+00:00Added an answer on May 24, 2026 at 10:12 am

    You should check out a clean, fresh trunk and merge with –integrate

    merge --reintegrate <branch url>
    

    For a lot more detail and discussion see the subversion book on line: http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.branchemerge.basicmerging.reintegrate

    It’s pretty safe to try this since nothing happens to your repository until you do a commit, giving you a chance to backout if you don’t like how the merge goes.

    EDIT: I should have stated more explicitly that in this case you merge from the HEAD of your branch to the HEAD of your trunk.

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

Sidebar

Related Questions

I have previously only made web applications in Asp.Net MVC, and there you can
Previously I had only one table (I have more, ofc, but these are the
I have used auto complete textbox previously. That auto complete works only when i
I have previously read Spolsky's article on character-encoding, as well as this from dive
Suppose that we have previously instantiated three objects A, B, C from class D
I previously have been reading NMEA data from a GPS via a serial port
I'm coming from a ClearCase background where we (simply speaking) had a workflow made
I have tried everything and this makes absolutely no sense! I previously had Less.js
I have previously had a repository on my computer for local use and removed
I have some C++ code that includes a method called CreateDirectory(). Previously the code

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.