Dealing with a subversion repo and a new user that didn't quite understand how it worked.
Long story short, since their local structure was messed up due to copying random .svn folders about, I did the following:
- copied the local structure to a folder called staging
- recursively deleted all .svn folders from the staging directory
- checked out the repo to a "clean folder"
Now we're at the last step — getting the staging folder contents to overwrite the clean contents.
I need to have a command copy the contents of the staging directory to the clean directory, removing everything that is only in the clean directory, BUT leaving the clean folder's .svn folders in tact.
This sounds like a job for rsync. Would the following command be correct?
rsync -avr --exclude=.svn* [staging] [clean]