Whenever I've left a website to a client for an extended period of time I feel the need to update the files in my repository to make sure it's up to date. Before you replace the files in trunk with the files from the server it's essential that you get rid of those pesky .svn system folders that will have been pushed to the production server when the site was deployed.
First things first, make sure you have your system files shown so that you can verify that the .svn folders have been removed.
For Mac OS X (via terminal)
defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder
For PC (thanks to Lawrence Abrams):
- Close all programs so that you are at your desktop.
- Click on the Start button. This is the small round button with the Windows flag in the lower left corner.
- Click on the Control Panel menu option.
- When the control panel opens click on the Appearance and Personalization link.
- Under the Folder Options category, click on Show Hidden Files or Folders.
- Under the Hidden files and folders section select the radio button labeled Show hidden files, folders, or drives.
- Remove the checkmark from the checkbox labeled Hide extensions for known file types.
- Remove the checkmark from the checkbox labeled Hide protected operating system files (Recommended).
- Press the Apply button and then the OK button..
- Now Windows 7 is configured to show all hidden files.
Finally, navigate to the folder where the site files are stored and run this command:
For Mac OS X
rm -rf `find . -type d -name .svn`
For Windows (thanks to Adam Anderson):
for /r %R in (.svn) do if exist %R (rd /s /q "%R")