title: Eclipse / Subclipse: Switch from branch to trunk with modified sources?
body: <p>Imagine you have a bunch of source files in a branch that you are working on that are add/modified/deleted.  Then suppose you decide to halt development on that branch for a while and go back and work on something else in the trunk.  You are NOT merging the branch at this time.</p>
  
  <p>Normally I would check in all my changes to the branch then do a <code>Team-&gt;Switch</code> and select the trunk and start work.  However, I noticed that if I didn't check in my changes, Subclipse happily changed the subversion URL of my working copy to trunk and left all my changes intact.</p>
  
  <p>My question is this: <strong><em>Did Subclipse do a merge for me behind the scenes or did it just switch the URL to trunk and do an update... presumably in an attempt to avoid losing my changes?</em></strong></p>
  
  <p>If it's the former, I have a new-found respect for subclipse/subversion.  If it's the latter then, it seems like it should be an illegal operation to do a subversion "switch" while you have a modified working copy because you are in effect trashing the trunk!!</p>