Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN - how does removing a bin folder cause the src folder to be removed instead?

There was a bin folder in version control with a bunch of .class files and other junk that should not be versioned. Could someone please explain to me how the following commit:

529  svn rm --force bin/
530  svn ci -m "Bin should not be under version control."

Leads to the following:

Revision 249
Author:     ndunn
Date:   Mon Jul 26 14:52:14 2010 UTC (62 minutes, 34 seconds ago)
Log Message:    

Bin should not be under version control.

trunk/projname/src/     deleted

I went back through the svn logs as someone reminded me that this had happened before - sure enough, one two separate occasions developers had attempted to remove the bin folder and instead the src folder completely disappeared.

Any idea what the heck could be going on? This is an Android project that's under version control.

like image 323
I82Much Avatar asked Jul 26 '10 15:07

I82Much


People also ask

What is bin and SRC?

src files are your raw, human-readable source code (in this case, .java ). bin files are your compiled code (in this case, .class )

How to remove folder from SVN repository?

Deleting a File or Directory To remove a file from a Subversion repository, change to the directory with its working copy and run the following command: svn delete file… Similarly, to remove a directory and all files that are in it, type: svn delete directory…

Can I delete the .SVN folder?

You can always fire up Windows PowerShell to help you find all the . svn folders recursively and delete them from any parent folder. If you run this command inside Windows PowerShell from the parent directory of your SVN project. This command will recursively delete all the .

How to remove a folder from Tortoise svn?

Deleting files and foldersUse TortoiseSVN → Delete to remove files or folders from Subversion.


2 Answers

I think this post solves the mystery

My problem is that when I start working into the project, the /bin folder is generated by the SDK and a copy of the .svn folder from /src is copied into /bin/.svn, which breaks by subversion structure.

So anyone using Eclipse with Android had better be prepared to have any changes made to the bin folder reflected in src... wow.

Picture solution: alt text http://grab.by/grabs/552e113d8ad854e128dae56cf0a4a775.png

like image 110
I82Much Avatar answered Oct 21 '22 23:10

I82Much


I recommend to set svn:ignore property on parent (of src and bin) with value bin to prevent committing bin folder. BTW: In our team 2 persons also deleted src while trying to delete bin - it seems it is Eclipse related problem...

like image 34
rafalmag Avatar answered Oct 21 '22 22:10

rafalmag