Archive

Archive for January, 2010

svn replacing folders including subdirectories

January 8th, 2010

ok.. well after searching the internet via google… once again I was disappointed to find nothing about replacing a current folder in the svn repo with a newer folder that contains no .svn directories.

Just so you guys know.. the reason i was doing this was to upgrade my version of wordpress..  My site is on subversion control and i just wanted to replace the wp-includes folder with the newer wp-includes folder. So this is how I did it.

First i deleted the old folder:
~$ svn delete old_folder_name

Than i commit the delete with a nice little message:
~$ svn commit -m "deleted old folder"

Than i add the new folder in the repo:
~$ cp /path/to/new_folder /path/to/new_folder_destination

Than i tell svn im adding the new folder:
~$ svn add new_folder/

Than finally i commit:
~$ svn commit -m "added new folder"

Done. Hope this helps… its better than deleting the whole repo and creating a new one with the new folders.. (some of what i read from google searches).

Web Developing