0

Within an SVN repo, I have an old branch (lets call it branch1) which is now about 2 months out of sync from trunk, and I now need to create a new branch (branch2) to extend the functionality of branch1.

It's very likely there are going to be conflicts and merged files, and due to the amount of time/work passed, I can imagine that an automatic merge is not going to be flawless, or maybe I should just have more faith.

Either way, I was wondering if anybody could provide any useful pointers for how I might tackle this scenario, and what sort of things I should watch out for, or will this simply be a case of simply doing the entire merge manually?

Thanks for any advice!

1 Answer 1

1

Generally, I run all my automated tests to ensure all is good. I then make a copy of the branches and trunk (e.g. copy/paste an up to date local repo). Then attempt an auto merge. Afterwords I rerun all the unit, integration and functional tests that are automated. If any thing is off that looks bad, I revert to original version and go at it by hand. Usually, if you got a horrible auto merge it won't even compile, let alone pass tests. Normally I decide to revert on a case by case basis assessing which ever looks less time consuming at that point (i.e. manually re-merge a few busted files, or redo the whole kitten caboodle).

Sign up to request clarification or add additional context in comments.

1 Comment

Unfortunately we are talking about PHP/HTML/CSS, so compiling is not a great fail safe in this instance! I'm a small cog in a long-running machine, so I'm not able to overhaul the entire process to cater for my individual branch, and I need to find a solution that fits well within the existing setup

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.