Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Making the folder unmanaged by SVN

Tags:

svn

Is it possible to delete the folder from repository the way it wont be removed from each user's local repository?

In my case there is a directory named 'config' that was intended to be version-controlled. Now we decided to remove that directory from version-control but leave it on each person computer (and add it to svn:ignore by the way). Problem is, if I delete that directory with "svn delete" - it will get deleted from everyone's computer and I don't want that.

like image 634
bezmax Avatar asked Mar 04 '09 14:03

bezmax


2 Answers

Only way I know of is to keep it on your own working copy:

svn delete --keep-local

You're stuck because you can't ignore a version controlled file.

If it's really important and you use TortoiseSVN, then you could perform the operation in 2 phases - create a client-side pre-update hook to export the directory (or files), then in post-update (after svn:ignore has been added to working copy) copy the directory or files back again.

Sounds like a right PITA though and IMHO you're probably better off sending an email explaining the situation and giving advance notice to export config before you do the commit.

like image 63
si618 Avatar answered Oct 14 '22 11:10

si618


You'll want to add svn:ignore on the directory once it's un-version controlled; but in order to get it out of version control, I think you'll have to svn:delete it, have each dev copy it out, delete the .svn directories, do an update, then copy it back.

This related question may help also.

like image 37
Tom Ritter Avatar answered Oct 14 '22 12:10

Tom Ritter