Juanjico
Juanjico

Reputation: 177

Delete folder content and remove from version control

We have a folder on the SVN tree with a lot of garbage on it. We want to do the following:

The problem is that every developer working at this proyect, can write garbage into this folder, but it never be commited to the SVN. BUT, currently there is a lot of garbage on the SVN itself.

Because the folder is already on the SVN tree, we can't add a 'ignore' property.

Note that the content deleting must be done at the SVN tree. Local content of every developer' folder must be left untouched.

We work with Eclipse+Subclipse and TortoiseSVN.

So, any idea on how do this ?

Upvotes: 1

Views: 3447

Answers (3)

Lightness Races in Orbit
Lightness Races in Orbit

Reputation: 385405

As you've said, you can't add the svn:ignore property, and you can't delete the folder without that change being propagated to individual working directories.

Ultimately, you're trying to subvert the way Subversion works — instead, just ask your developers to back-up their copies of the directory, and then delete it from the repository in the usual way.

Upvotes: 3

Marcin Pietraszek
Marcin Pietraszek

Reputation: 3214

I'd faced same issue in similar setup, and I found it really tough. I managed to do this using the svn command line client (could be downloaded from here).

cd directory-to-remove
svn remove *
svn commit -m "message deletion"
svn update
svn propset svn:ignore * .
svn commit -m "message ignoring"

After this command sequence directory-to-remove itself will stay on svn but anything inside this directory couldn't be committed to repository.

Upvotes: -1

ed.
ed.

Reputation: 1393

Tortoise has an option for this. Right click on the folder and click "TortoiseSVN" then select "Delete and add to ignore list."

Upvotes: -1

Related Questions