0

We have multiple SVN repositories. A developer may be working on multiple repositories at the same time. I am aware of the auto-prop option available with SVN. If we enable this, it is adding the property on files in all the repositories whenever commit happens. Is there any way I can tell subversion to enable auto-prop only when checkin happens to a particular repository and not all the repos.

I am adding the property 'needs-lock'. There are hundreds of developers working on a particular project. It is difficult to enable the auto-prop option in all the developers machine. For the existing files, I can add the property in SVN. Is there any way I can add the property to the newly added files via hook scripts or something from server side instead of enabling auto-prop in all developer machines.

Dipu H
  • 2,372
  • 15
  • 24
  • possible duplicate of [Automatically add svn:needs-lock](http://stackoverflow.com/questions/711053/automatically-add-svnneeds-lock) – bahrep Jul 07 '14 at 08:30

1 Answers1

2

See the answer: https://stackoverflow.com/a/18571763/761095.

  • Force your users to use SVN 1.8 client,
  • Set svn:auto-props to add svn:needs-lock on required repository items (works with Subversion 1.8+ client).

See

Community
  • 1
  • 1
bahrep
  • 29,961
  • 12
  • 103
  • 150
  • Suppose I am configuring this to set a property on all newly added *.xls files, the property will be applied to all newly added xls files across all the repositories. I want this to happen only on a particular repository. – Dipu H Jul 07 '14 at 09:57
  • I am not confused with a working copy and a repository. I have more than 100 developers working across multiple projects located in different svn repositories. One developer may be working on multiple repositories at the same time. If I set 'svn:auto-props' in conf file of a developer, it will add the property independent on repository. I want the property to be added on a particular repository only. Not all the repositories that the developer works. Hope this is clear. – Dipu H Jul 07 '14 at 10:03
  • @DipuH what conf file? You haven't read the answer at all :/ It's about `svn:auto-props` versioned property, not about `[auto-props]` runtime configuration setting. – bahrep Jul 07 '14 at 10:11
  • To be more clear, Say I have two repositories, Repo-A and Repo-B. I am working on both the repos at the same time. I want the property to be set on all *.sql files on Repo-A only. Repo-B is also having many *.sql files on which I don't want to set the property. – Dipu H Jul 07 '14 at 10:12
  • I am sorry. My Mistake. – Dipu H Jul 07 '14 at 10:16
  • It is a pain to update all the clients. In my case there are around 1400 users across the globe. Anything can be done in server side to add the property? Appreciate your patience :) Thanks – Dipu H Jul 07 '14 at 10:37
  • @DipuH I don't think that there is any way to do so then. – bahrep Jul 07 '14 at 11:09