The merge process only restores the change in your working copy. When the command completes, just use the Revert option to undo any changes you do not want, and then commit the rest. You have to select the parent folder when you take the option, and this will restore all five files. Suppose you delete five files from the same folder and want to restore one of them. Then the merge will only undo the changes in the context of that folder and other changes in the commit will be skipped by the merge process. If you only want to undo the changes to files in a specific folder, then select that folder when you show the history. There are a couple of ways to deal with this:
It would not be uncommon to only want to reverse part of the changes from a commit or series of commits. Review the results of the merge and commit the changes to finish the process. When the option runs, it will invoke the merge command, supplying the proper parameters to do a reverse merge. Right-click and choose the option to revert the changes from those revisions: Now, just select the revision, or contiguous range of revisions, that contain the changes you want to undo. If you want to restore something that is deleted, then you need to show the history of the item's parent, so that the history will show you the deletion. Otherwise, you can select your project or a folder so that you can undo changes to multiple files. If you just want to restore the changes to one file, then select just that file. The first step is to show the history of the item containing the change you want to restore. The Subclipse feature described below is based on the TortoiseSVN feature. To give proper credit where it is due, the technique that is described in this article first appeared in the TortoiseSVN product. However, Subclipse offers a built-in technique that makes it very easy to undo a change. When using a GUI tool like Subclipse, you could just use the Merge option and fill out the dialog using similar values to what you would do from the command line. For command-line users, the process to do this is explained well in the Subversion book. Essentially, you use the svn merge command with the revisions flipped around so that the merge command undoes the changes in the selected revisions. The technique I am going to focus on in this post is called a "reverse merge". For example, the svn copy command can be used to restore something that is deleted. Depending on the circumstances, there might be several ways you can accomplish this. This article will just be about reversing the effects of a commit, as in restoring a deleted file/folder or some change to a file or set of files. I will not be covering that option in any detail in this article. You need to dump the repository up to the revision you want to remove, and then recreate and load the repository from the dump file. If you need to undo a change completely, as in remove all traces it ever happened, there is really only one way to do it.
A variant of the same request is how to get back a file that has been deleted. A frequent question that is asked on the Subversion and Subclipse mailing lists is how to undo a change once it has been committed.