SVN: cannot set svn to ignore in one file

I have several folders with .swf files. When I go to the folder and type:

svn --username myusername propset svn:ignore *.swf 

I get a message:

 svn: Cannot set 'svn:ignore' on a file ('Floating.swf') 

I have several .swfs in this folder ... how can I not download them?

+4
source share
2 answers

It looks like your shell is pushing the template before it gets to svn (in other words, the actual command that works, svn --username myusername propset svn:ignore Floating.swf Sunk.swf etc Try to include the template in single quotes so that your shell didn't do this.In addition, you need to apply this property to the directory, it looks like you want to use the current one, so . should work:

 svn --username myusername propset svn:ignore '*.swf' . 
+6
source

Set the property in the directory containing the files, not the individual files themselves.

http://svnbook.red-bean.com/en/1.1/ch07s02.html#svn-ch-7-sect-2.3.3

The property is set in the directory in which you want to apply the templates.

If you want to ignore .swf files in general, and not for each directory, you should consider global ignoring in the configuration file:

http://svnbook.red-bean.com/en/1.1/ch07.html#svn-ch-7-sect-1.3.2

global-ignored

+1
source

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


All Articles