Quickly Learn How to Remove the Code Content from SVN Repository:
In this In-Depth Subversion Tutorial Series, we learned how to use the Tortoise SVN client to check-out and check-in the code from/to repository in the previous tutorial.
In this tutorial, we will be learning about how to remove/delete the code content from the repository.
How to Delete Content From SVN Server Repository?
In the last tutorial, we have checked-in the code into the server repository. As we have set up a free repository, we will not be able to check-in another project (with the free repository, one can check-in only one project, and this is the limitation).
So, if we want to check-in another project, then we have to first remove the contents of the repository. Let us now see how can we remove the content that we have checked-in into the repository.
To delete the content, right-click anywhere on your desktop, and then click TortoiseSVN => Click Repo-browser.
Once you click the Repo-browser, the below window comes up showing the URL of the repository (if the URL is not auto-populated, then paste the server repository URL that we had created in the previous tutorial sessions).
Click OK (make sure you are connected to the internet). The below window that shows the contents of the repository will come up.
Select all the files (press Ctrl key on your keyboard and select the files one by one till you select all of them).
Right-click on the selected files.
Click Delete. Enter a meaningful log message so that you remember why you made the changes to the repository.
Click OK, the repository content will get deleted after some time. Notice below that the repository is now empty.
Click OK to close the above window.
Refresh the repository server URL, you should not see any file in the browser. Moreover, you can see at the bottom of the screen that the Revision number has now increased to 2. Thus every time when you do any changes to the repository, the revision number will change.
It is quite important to note the latest revision number always.
SVN helps you to version your project as you progress with your test automation project, it ensures that the team members are always in sync with respect to the test scripts that they are working on.
Thus we would encourage you to start using the versioning software that your company employs, this will help to streamline your day to day work and process.
We hope you are now comfortable with the software versioning concept using Subversion SVN after reading through this entire SVN tutorial series.
PREV Tutorial | FIRST Tutorial