svnsvn-propset

Automatically add svn:needs-lock


Hi I was wondering if there is a way for the SVN server to automatically assign the svn:needs-lock property on any file that is binary and not textual.

We have a rather small developers team but resting on everyone to remember to set this property on newly created binary files doesn't make sense since it's very easy to forget such a thing.


Solution

  • Edit the svn config file and add an entry for auto props or use svn:auto-props versioned property with SVN 1.8 and newer clients. Read SVNBook!

    EDIT:

    From SVN 1.8 the you can apply the svn:auto-props property to the root path of your repository. See this release note and updated SVNBook 1.8 chapter.