![]() *.ser = svn:mime-type=application/octet-stream svn:needs-lock=* *.ppt = svn:mime-type=application/vnd.ms-powerpoint svn:needs-lock=* *.pdf = svn:mime-type=application/pdf svn:needs-lock=* *.odt = svn:mime-type=application/ svn:needs-lock=* *.ods = svn:mime-type=application/ svn:needs-lock=* *.odp = svn:mime-type=application/ svn:needs-lock=* *.odi = svn:mime-type=application/ svn:needs-lock=* *.odg = svn:mime-type=application/ svn:needs-lock=* *.odf = svn:mime-type=application/ svn:needs-lock=* ![]() *.odc = svn:mime-type=application/ svn:needs-lock=* *.jar = svn:mime-type=application/octet-stream svn:needs-lock=* *.doc = svn:mime-type=application/msword svn:needs-lock=* *.tiff = svn:mime-type=image/tiff svn:needs-lock=* *.tif = svn:mime-type=image/tiff svn:needs-lock=* *.png = svn:mime-type=image/png svn:needs-lock=* *.jpg = svn:mime-type=image/jpeg svn:needs-lock=* *.jpeg = svn:mime-type=image/jpeg svn:needs-lock=* *.ico = svn:mime-type=image/x-icon svn:needs-lock=* *.gif = svn:mime-type=image/gif svn:needs-lock=* *.bmp = svn:mime-type=image/bmp svn:needs-lock=* # is typically done by setting the 'enable-auto-props' option. # Note that auto-props functionality must be enabled, which All entries which match will be applied to the file. # The file-name-pattern can contain wildcards (such as '*' and Replace or merge the and sections in the svn config file with the following: under windows the SVN config file is "C:\Documents and Settings\\Application Data\Subversion\config" This can be achieved automatically if users configure their svn client config file. New binary files should have the svn:needs-lock property set, this is verified by the script of step 1. add to following line to a cmd script (Windows only):įOR /R c:\full\path\to\repository %%v in (*.bmp *.gif *.ico *.jpeg *.jpg *.png *.tif *.tiff *.doc *.jar *.odc *.odf *.odg *.odi *.odp *.ods *.odt *.pdf *.ppt *.ser *.swf *.vsd *.xls *.zip) do svn propset svn:needs-lock yes %%~fvģ) Configure users to automatically use svn:needs-lock property on new binary files If you need to apply svn:needs-lock on already existing binaries in a repository, do the following on a client (not on the svn server): REM Display a helpful error message to the userĢ) Recursively set svn:needs-lock property on binaries REM echo "%SVNLOOK% propget -t %2 %1 svn:needs-lock "%%i" 1> nul 2> nul" 1>
0 Comments
Leave a Reply. |