title: How to reintegrate branch, overwriting trunk changes that has not been merged into branch?
body: <p>We have worked on a feature branch the last six months. Most commits made to the trunk in this period have been merget to the branch, but some trunk commits were deliberately never merged to the branch.</p>
  
  <p>Now the branch is complete, and we basically want to "replace" trunk with the branch (we do not need the trunk changes that was never merged to the branch anymore). <a href="https://stackoverflow.com/a/2227900/820181">This answer to a simular question suggests</a>:</p>
  
  <ol>
  <li>Check out the trunk revision from which you created the branch (not the HEAD revision). </li>
  <li>Commit it to the repository (this undoes all subsequent trunk changes). </li>
  <li>Do your reintegrate-merge (your trunk working copy should now be identical to the branch.) </li>
  <li>Commit the merged trunk, and you're done!</li>
  </ol>
  
  <p><a href="https://stackoverflow.com/a/1840326/820181">This answer suggests</a>:</p>
  
  <pre><code>svn co http://svnhost/trunk
  cd trunk
  svn merge http://svnhost/trunk http://svnhost/branches/branchname
  </code></pre>
  
  <p>What will be the proper solution in my case?</p>