Subversion: how to expand BIN and OBJ folders

In subversion / TortoiseSVN, I am wondering how to remove a directory version. We have a large number of projects, each of which has a BIN and OBJ folder, which are under source control. I want to delete these two folders from the disruptive program, but save the folders locally.

I tried the option "Delete (save locally)" and it works on my machine. However, when another developer performs the update, their BIN and OBJ folders are deleted. I need him to simply become unbeliever when other developers upgrade, instead of removing them from their computers.

Thanks ~ James

+4
source share
6 answers

You want to use the ignore operation from the TortoiseSVN context menu.

http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-ignore.html

+6
source

If you use TortoiseSVN, just export to the current working copy location and it will delete the .svn folders and files.

http://tortoisesvn.net/node/343

0
source

A quick and dirty solution for chmod -R aw these folders, so svn cannot delete them.

However, I would have thought that if it does not regenerate, it should be under version control, and if it regenerates, does it not matter?

Or recompilation for everyone will be prohibitively long.

Please note that it will only delete them for the first time, so while you protect files with the first update, you should be fine.

EDIT: or a classic copy of the copy; copy it after upgrade. "

0
source

I think the easiest way to do this is to fork your code, delete directories, and then merge back into the trunk.

All developers must add obj and bin files to their global ignore before checking for an updated trunk.

I used the templates from this answer and they worked for me: How to set up a global ignore TortoiseSVN template?

0
source

Make sure you go to the parent directory and commit it.

0
source

My solution for this kind of task is to change the project file (msbuild) to automatically recreate the bin / obj directories (if they are missing) before the compilation stage. Then svn delete the bin / obj directories and finally update the .svnignore file to ignore the bin / obj directories. Thus, you are not trying to store intermediate products, and yet directories will be available immediately after assembly, either in Visual Studio or in MSBuild.

-1
source

Source: https://habr.com/ru/post/1313714/


All Articles