title: How do I determine if svn:mergeinfo is corrupt and how would I fix it?
body: <p>I suspect I have corrupt mergeinfo but I'm not sure.  Does anyone know how I'd make a determination and what resources are out there to help fix problems?</p>
  
  <p>Here’s the issue.  My team recently moved to agile and uses  feature branches (story branches really) where different teams work on the same sources concurrently.   As the story achieves a high state of readiness the team merges to trunk.   The merges are taking days or weeks due to missing changes, unexpected changes, and conflicts.  We are talking about teams of 5-10 people and the effort/churn seems way to high.</p>
  
  <p>People use the this merge pattern
  a) PULL - merge trunk-to-branch, resolve, test, commit
  b) PUSH - merge branch-to-trunk, resolve, test, commit
  c) Recreate branch (or usually create new story branch and drop old since it's done)</p>
  
  <p>By the end of this the branch and trunk should be in alignment.</p>
  
  <p><strong>Problems we are seeing:</strong></p>
  
  <ol>
  <li>changes not reported during trunk-to-branch merge show up in subsequent branch-to-trunk</li>
  <li>conflicts on svn:mergeinfo properties during merge</li>
  <li>file missing, but local edit on new file added in branch and pushed to trunk</li>
  <li>incoming + local delete (file deleted on trunk and branch shows as conflict)</li>
  </ol>
  
  <p>(1) Should not be happening.  The pull from branch to trunk should put the two in sync for all changes already on trunk.  The changes in branch-to-trunk merge are changes that happened on the trunk.  So in the first merge they should have propagated to branch but didn’t.  This points to corruption in mergeinfo data which would “hide” trunk changes.</p>
  
  <p>(2) Should not be happening.  SVN should be managing the changes in the merge tracking.  This also points to corruption in the mergeinfo data</p>
  
  <p>(3) Should not be happening.  This is a case of a new file added on branch.  It should show up as a new file added to trunk.  This also points to corruption in the merge info data.</p>
  
  <p>(4) I believe this is a SVN bug and that we can’t fix this.  Still if this were our only problem I'd be happy</p>
  
  <p>We are currently on svn 1.5.x server with clients using svn 1.6.x and svn+ssh for connecting.   We plan to go up to the latest and greatest SVN since some fixes may impact our problems.</p>
  
  <p>Still, it sure looks like our mergeinfo data is wrong.   </p>
  
  <ul>
  <li>Merges that don't report all changes</li>
  <li>Conflicts in merge of mergeinfo properties</li>
  </ul>
  
  <p>Any good places for me to start looking?</p>