If I have a development area that I deleted files from a certain folder/directory, when I import them back into the repository on the server, is svn supposed to remove the deleted files on the server too?
For example, I have directory “home” in home I had index.php. This is all on my development machine. At the moment it matches my svn repository which also has index.php in it. I delete the file index.php on my development machine and create a new file named blog.php.
When I import the development back into the repository will svn erase index.php and put in blog.php?
I ask because I tried this with tortoise svn and it did not delete the files i deleted. It didn’t even put the new file in until I navigated directly to the “home” folder and imported from there, instead of the top level.
Also, should does SVN only import changed files and folders or everything? Thank you.
Deleting files from your local sandbox has no effect on the server. Whenever you do another
update, you get back those files.If you want to remove the files, use
svn deletefollowed by acommit. Even then, the files are not really deleted from the server, you can still restore them if necessary.With TortoiseSVN use Context Menu in explorer,
Tortoise SVN > Delete.To add new files to the repository, use
svn addfollowed by acommit.