How to ignore individual Subversion subdirectories during commit

In the current project I'm working on, someone decided that the binaries would be scanned as part of the source tree. Binary files are located in the directory under the sources themselves:

project/src             # Here is the location of the source code
project/src/more_src    # Some more source code lives here
project/src/bin         # Here are the binary files

As you can imagine, merge conflicts arise because of this. This is very annoying, since I don’t feel that any development machine should write binary files - this should be left on the build server.

I am a command line user of subversion. I would ignore the directory bin, in use svn st, and svn cithese directories passed (even if there are pending changes).

Unfortunately, I cannot use -N (non-recursive) because of the directory more_src.

How can i do this?

+3
source share
5 answers

edit : subversion 1.6 released. From the release notes:

In Subversion 1.6, --set-depth, the svn update parameter has grown to a new-exclude value. This value tells Subversion to exclude the target from the working copy, immediately and until further notice. Prior to Subversion 1.6, if the directory might not be easy to remove from the working copy ....

All of the above is out of date.


You can limit the depth of the folders in the working copy in the right places so that unwanted files do not appear as version files. However, you cannot reduce the depth in an existing working copy.

1) Make a clean working copy (it will contain only files and empty folders in the root):

svn co --depth repoURL ///

2) , ,

svn update --depth infinity /some/good/path

,

svn update --depth immediates /some/path/to/make/deeper

. (, ), svn . " ".


edit: -, , :
  • ( )
  • ( delete, svn rm). , .

svn update --depth empty /////

svn- , .

+15

script .

:

alias up-all='svn up ~/includes ~/scripts ~/htdocs/intra ~/htdocs/update'

Windows, .bat .

+2

, , , . , .

, - SVN. , , . svn: ignore. SVN. -, , , . , , .

, . , , , , . SVN , , .

, , - TAG . ( ) TAG TAG. TAG. , TAG, . , , , / TAG, HEAD, TAG ( HEAD-1).

+2

, :)

wcoenen- , script, svn revert/project/src/bin, svn ci.

, , "deploy" bin obj. , ( svn) .

+1

( http://svnbook.red-bean.com/nightly/en/svn.advanced.props.special.ignore.html):

Subversion . Subversion, . , , Subversion , , , . Subversion .

+1

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


All Articles