Fixed sequence of steps in svn sync; added debug statements