# Create a new repository rm -rf repo wc wc2 svnadmin create repo svn co file://`pwd`/repo wc # Create a simple branch cd wc svn mkdir trunk svn mkdir trunk/A svn commit -m "" # Create a copy of that branch svn cp trunk trunk-copy svn commit -m "" # Checkout the branch nonrecursively cd .. svn co -N file://`pwd`/repo/trunk wc2 # Switch from that branch to a different branch with identical contents svn switch file://`pwd`/repo/trunk-copy wc2 # Run 'svn update' svn up wc2 echo echo Actual results ls -lR wc2 echo echo Expected results ls -lR wc/trunk-copy