Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

It is possible to completely remove a file from my SVN repository?

I am using tortoise SVN for a project that I'm working alone and I have committed (by mistake) a huge file to my repository (a VC++ Intellisense Database). Now I want to remove this file from my repository to facilitate its backup.

Removing the file from my project and doing a commit (obviously) do not solve my problem as the previous version of that file are still there in the repository. Is there a way to solve this problem that does not involve the creation of a new repository?


EDIT

The @ryansstack solution worked perfectly, that is what I did (I ran the commands in the directory where my repository was located):

First I created a dump of my repository filtering that huge file:

svnadmin dump tcc | svndumpfilter exclude "/trunk/Image Segmentation/Image Segmentation.ncb"  > tcc.bak

Then I have created a new repository (tcc2) and ran the following command:

svnadmin load tcc2 < tcc.bak

Now the dump size of tcc2 is 7 MB versus 170 MB of tcc.

like image 948
Alceu Costa Avatar asked Jul 10 '09 18:07

Alceu Costa


People also ask

How do I delete a file from a commit in SVN?

Using svn to delete a file from your working copy deletes your local copy of the file, but merely schedules it to be deleted from the repository. When you commit, the file is deleted in the repository. $ svn delete myfile D myfile $ svn commit -m "Deleted file 'myfile'." Deleting myfile Transmitting file data .

How do I delete a project in SVN repository?

Show activity on this post. Now, after performing "Click OK" you need to go to truck (or place where your project is saved in SVN) then select project(which you want to Delete) then right click -> Delete. This Will Delete project from subversion.

How do I delete a working copy in SVN?

Assuming you use the latest Syncro SVN Client version, to remove the working copy from Desktop: remove the working copy from Syncro SVN Client; For this, press the button with a folder on it, next to the working copies combo box (in the Working Copy view). From the opened dialog box, remove the Desktop working copy.

How do I remove a project from TortoiseSVN?

You right click on the directory, go to TortoiseSVN -> Delete. You then right click on the parent directory and SVN Commit... and that will remove the folder. This will delete the folder as well.


1 Answers

http://subversion.apache.org/faq.html#removal

you can't, quickly, but there is a way

like image 125
ryansstack Avatar answered Oct 12 '22 04:10

ryansstack