I have a symlink in our website called index.php which points to a script controller.php.
I’m want to remove the symlink then rename the controller.php to index.php. I’m doing this on 100’s of files so I want to ensure I won’t run into problems commiting and hopefully keep the history.
What I think is the correct thing to do is to remove the link using svn:
svn remove index.php
Followed by a svn rename
svn rename controller.php index.php
When I run svn status I get
D htdocs/listener/v2/bbin/controller.php
R + htdocs/listener/v2/bbin/index.php
Will this guarantee me that I won’t have conflicts and will keep the history of the controller.php file?
Yes, that status is correct; The
Dmeans that the filehtdocs/listener/v2/bbin/controller.phpwill be deleted, and theRmeans that the filehtdocs/listener/v2/bbin/index.phpwill be replaced. The+means that there is additional metadata being added with the commit, in this case, that the file is being replaced withcontroller.php.